diff options
| -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"  |