Skip to content

Instantly share code, notes, and snippets.

@FeodorFitsner
Last active April 4, 2022 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FeodorFitsner/bad29768ea24f8bdaae28677ba49fdfc to your computer and use it in GitHub Desktop.
Save FeodorFitsner/bad29768ea24f8bdaae28677ba49fdfc to your computer and use it in GitHub Desktop.
Test env vars passing
image: Visual Studio 2019
test_script:
- pwsh: |
[System.Environment]::SetEnvironmentVariable('release_title', "iricdev $(get-date -AsUTC -Format o)", 'Machine')
- ps: "$env:release_title = [System.Environment]::GetEnvironmentVariable('release_title', 'Machine')"
- ps: 'echo "release_title: $($env:release_title)"'
build: off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment