Last active
May 14, 2020 21:42
-
-
Save crpietschmann/7249fa9489c00f344f712a68f87037fc to your computer and use it in GitHub Desktop.
Azure DevOps Variables - pass variable from on step to another
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
- job: JobOne | |
pool: | |
vmImage: 'ubuntu-latest' | |
steps: | |
- bash: | | |
NOW=$( date '+%F_%H:%M:%S' ) | |
echo "##vso[task.setvariable variable=currentTime]$NOW" | |
displayName: Get Date | |
- bash: | | |
echo $(currentTime) | |
displayName: Show Date |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment