Difference between revisions of "Azure Pipeline: condition:"
Jump to navigation
Jump to search
↑ https://docs.microsoft.com/en-us/azure/devops/pipelines/process/conditions
(Removed redirect to Job:) Tag: Removed redirect |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | https://docs.microsoft.com/en-us/azure/devops/pipelines/process/conditions | ||
+ | condition: always() # This step will always run, even if the pipeline is canceled | ||
+ | condition: failed() # This job will only run if Foo fails | ||
+ | |||
+ | condition: succeeded() | ||
+ | condition: and( XXXX, YYYY, ZZZZ ) | ||
+ | |||
+ | condition: eq(variables['YOUR_VAR'], 'true') | ||
+ | |||
+ | == Azure Pipeline Job full syntax == | ||
{{Azure pipeline job}} | {{Azure pipeline job}} | ||
+ | == Related == | ||
+ | * [[Azure pipelines]]: <code>[[Azure pipelines: parameters:|parameters:]]</code> | ||
== See also == | == See also == |
Latest revision as of 11:42, 7 April 2022
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/conditions
condition: always() # This step will always run, even if the pipeline is canceled condition: failed() # This job will only run if Foo fails
condition: succeeded() condition: and( XXXX, YYYY, ZZZZ )
condition: eq(variables['YOUR_VAR'], 'true')
Azure Pipeline Job full syntax[edit]
- job: string # name of the job, A-Z, a-z, 0-9, and underscore displayName: string # friendly name to display in the UI dependsOn: string | [ string ] condition: [ always() | failed () | .../... ] # [1] strategy: parallel: # parallel strategy matrix: # matrix strategy maxParallel: number # maximum number simultaneous matrix legs to run # note: `parallel` and `matrix` are mutually exclusive # you may specify one or the other; including both is an error # `maxParallel` is only valid with `matrix` continueOnError: boolean # 'true' if future jobs should run even if this job fails; defaults to 'false' pool: pool # agent pool workspace: clean: outputs | resources | all # what to clean up before the job runs container: containerReference # container to run this job inside timeoutInMinutes: number # how long to run the job before automatically cancelling cancelTimeoutInMinutes: number # how much time to give before killing task variables: { string: string } | [ variable | variableReference ] steps: [ script | bash | pwsh | powershell | checkout | task | templateReference ] services: { string: string | container } # container resources to run as a service container uses: # Any resources (repos or pools) required by this job that are not already referenced repositories: [ string ] # Repository references to Azure Git repositories pools: [ string ] # Pool names, typically when using a matrix strategy for the job
Related[edit]
See also[edit]
- Azure, Azure Blob, Azure Resource Manager, Azure container registry, Microsoft Azure SQL Database, AKS, Azure Stack, Azure Active Directory, Azure DevOps, Azure DevOps Server, Azure Defender, Azure Sentinel, Citus Data, Azure Container Apps, Azure Functions,
az
, Azure Pipelines, Azure Synapse Analytics, Azure Data Factory, Azure Monitor, Azure Site Recovery, Azure Key Vault, Azure Container Instances, Azure Cosmos DB, Azure Compute Unit (ACU), Azure IoT, Azure IoT Edge, Azure IoT Hub, Azure Automation
Advertising: