aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-23 18:38:42 -0700
committerGravatar MarkKoz <[email protected]>2019-06-29 20:05:39 -0700
commitef064bdbe1cc7aba2d08e606778446b834e00e4b (patch)
treec6985edb249d1c2bc5f8ec20192ddacb5046f299
parentRun-time format expression (diff)
Echo $(PREV_BUILD)
-rw-r--r--azure-pipelines.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9375e51..847aa33 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -7,8 +7,8 @@ jobs:
pool:
vmImage: 'Ubuntu-16.04'
-# variables:
-# PREV_BUILD: 1
+ variables:
+ PREV_BUILD: 1
steps:
- script: |
@@ -51,10 +51,12 @@ jobs:
printf '%s\n' "##vso[task.setvariable variable=PREV_COMMIT;isOutput=true]${prev_commit}"
displayName: 'Get Previous Successful Build'
+ - script: echo $(PREV_BUILD)
+
- task: ShellScript@2
inputs:
scriptPath: './scripts/test.sh'
- args: $[ format('{0}', variables['PREV_COMMIT']) ]
+ args: $(PREV_BUILD)
displayName: 'Print PREV_BUILD'
- task: DownloadPipelineArtifact@2
@@ -63,7 +65,7 @@ jobs:
project: $(System.TeamProjectId)
pipeline: $(System.DefinitionId)
buildVersionToDownload: 'specific'
- buildId: variables['PREV_COMMIT']
+ buildId: $(PREV_BUILD)
artifactName: 'base_id'
displayName: 'Download Base ID Artifact'