Building cloud-native apps on Azure. I can't stop self-improving.
I used to be a .NET developer. Nowaways, I am a DevOps solutions architect with a focus on Azure and Kubernetes. I also love productivity topics, especially when it comes to doing more with less of my time. I'm also a daddy, so time is a limited resource for me.
Markdown supported · ⌘↵ to post
Hi,
This example isnt working anymore, when i echo the value nothing is displayed, I am stuck on a similar problem, maybe can you please assist? thx
Maikel
Like lavoizer mentioned, the example does not work.
Fixed it for you:
variables: someName: someValue stages: - stage: stage_deploy displayName: Production jobs: - job: job_deploy_infrastructure displayName: Deploy Some Infrastructure steps: - bash: | SOMEVALUE="bleh" echo "##vso[task.setvariable variable=someName;isOutput=true;]$SOMEVALUE" echo "variable value is $(someName)" name: setVariable - job: job_deploy_code displayName: Deploy Some Code dependsOn: ['job_deploy_infrastructure'] variables: someName: $[ dependencies.job_deploy_infrastructure.outputs['setVariable.someName'] ] steps: - bash: | echo "the variable value is $(someName)"