aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-23 18:25:19 -0700
committerGravatar MarkKoz <[email protected]>2019-06-29 20:05:38 -0700
commitf488fd43e95ee76319a9c29c3a38ae4f9ad21a29 (patch)
tree5f26ed92736e2aad07b2a9c2e8a9cf6563b48bfb
parentDoes the variable get overwritten? (diff)
Try an expression
-rw-r--r--azure-pipelines.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 3509983..1be6867 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: |
@@ -54,7 +54,7 @@ jobs:
- task: ShellScript@2
inputs:
scriptPath: './scripts/test.sh'
- args: '$(PREV_BUILD)'
+ args: variables['PREV_COMMIT']
displayName: 'Print PREV_BUILD'
- task: DownloadPipelineArtifact@2
@@ -63,7 +63,7 @@ jobs:
project: $(System.TeamProjectId)
pipeline: $(System.DefinitionId)
buildVersionToDownload: 'specific'
- buildId: $(PREV_BUILD)
+ buildId: variables['PREV_COMMIT']
artifactName: 'base_id'
displayName: 'Download Base ID Artifact'