diff options
author | 2019-06-30 14:50:17 -0700 | |
---|---|---|
committer | 2019-06-30 14:50:17 -0700 | |
commit | c1c066a8494efcef326615e29e9b89ef69bc79f4 (patch) | |
tree | 84483dccd2d22e903b320112e7db0ed0d0b3c2a1 | |
parent | Set BASE_PULL to true (diff) |
Use a variable in a job condition
-rw-r--r-- | azure-pipelines.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 453526a..f33b7c4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,8 +16,8 @@ jobs: enabled: false - script: | - echo "##vso[task.setvariable variable=BASE_CHANGED;isOutput=true]False" - echo "##vso[task.setvariable variable=VENV_CHANGED;isOutput=true]False" + # echo "##vso[task.setvariable variable=BASE_CHANGED;isOutput=true]False" + # echo "##vso[task.setvariable variable=VENV_CHANGED;isOutput=true]False" echo "##vso[task.setvariable variable=BASE_PULL;isOutput=true]True" name: check displayName: 'Set Variables' @@ -31,6 +31,11 @@ jobs: - job: build displayName: 'Build' + condition: > + and( + succeeded(), + eq(variables.BASE_CHANGED, True), + ) dependsOn: test variables: |