aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-23 18:13:56 -0700
committerGravatar MarkKoz <[email protected]>2019-06-29 20:05:38 -0700
commit5eec45c29fa66139c3f537bbbb602e4e769346ad (patch)
tree66bd8bd913ea4089d7050c0f470e0c11c8f64293
parentSet variable beforehand (diff)
Does the variable get overwritten?
-rw-r--r--azure-pipelines.yml8
-rwxr-xr-xscripts/test.sh3
2 files changed, 10 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 6b7d171..3509983 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -8,7 +8,7 @@ jobs:
vmImage: 'Ubuntu-16.04'
variables:
- PREV_BUILD: 2434
+ PREV_BUILD: 1
steps:
- script: |
@@ -51,6 +51,12 @@ jobs:
printf '%s\n' "##vso[task.setvariable variable=PREV_COMMIT;isOutput=true]${prev_commit}"
displayName: 'Get Previous Successful Build'
+ - task: ShellScript@2
+ inputs:
+ scriptPath: './scripts/test.sh'
+ args: '$(PREV_BUILD)'
+ displayName: 'Print PREV_BUILD'
+
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
diff --git a/scripts/test.sh b/scripts/test.sh
new file mode 100755
index 0000000..a267324
--- /dev/null
+++ b/scripts/test.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+printf '%s\n' "$1"