diff options
| author | 2019-06-23 18:13:56 -0700 | |
|---|---|---|
| committer | 2019-06-29 20:05:38 -0700 | |
| commit | 5eec45c29fa66139c3f537bbbb602e4e769346ad (patch) | |
| tree | 66bd8bd913ea4089d7050c0f470e0c11c8f64293 | |
| parent | Set variable beforehand (diff) | |
Does the variable get overwritten?
| -rw-r--r-- | azure-pipelines.yml | 8 | ||||
| -rwxr-xr-x | scripts/test.sh | 3 |
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" |