From ef064bdbe1cc7aba2d08e606778446b834e00e4b Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Sun, 23 Jun 2019 18:38:42 -0700 Subject: Echo $(PREV_BUILD) --- azure-pipelines.yml | 10 ++++++---- 1 file 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' -- cgit v1.2.3