aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-30 14:50:17 -0700
committerGravatar MarkKoz <[email protected]>2019-06-30 14:50:17 -0700
commitc1c066a8494efcef326615e29e9b89ef69bc79f4 (patch)
tree84483dccd2d22e903b320112e7db0ed0d0b3c2a1
parentSet BASE_PULL to true (diff)
Use a variable in a job condition
-rw-r--r--azure-pipelines.yml9
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: