Skip to content

Instantly share code, notes, and snippets.

@TsuyoshiUshio
Last active January 10, 2020 19:51
Show Gist options
  • Save TsuyoshiUshio/517aac0e48cc9d3018e1db6e18ead738 to your computer and use it in GitHub Desktop.
Save TsuyoshiUshio/517aac0e48cc9d3018e1db6e18ead738 to your computer and use it in GitHub Desktop.
Child.CI
resources:
pipelines:
- pipeline: parent
source: Parent.CI
trigger:
branches:
- master
trigger: none
pool:
vmImage: 'ubuntu-latest'
steps:
- script: 'env | sort'
displayName: "echo Environment Variables"
- task: DownloadBuildArtifacts@0
displayName: 'Download variables'
inputs:
buildType: 'specific'
project: '<YOUR_PROJECT_ID_HERE>'
pipeline: '229'
buildVersionToDownload: 'latest'
downloadType: 'specific'
downloadPath: '$(System.ArtifactsDirectory)'
- script: cat $(System.ArtifactsDirectory)/variables/pipeline.env
displayName: 'Restore Enviornment Variables'
- script: echo "FOO:$(FOO)"
displayName: 'echo envrionemtn variables'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment