Created
September 23, 2018 21:29
-
-
Save nikolay-advolodkin/8e8df8d4e8e7878e8febfd139c433d0b to your computer and use it in GitHub Desktop.
Set sauce environment variables from .ps1 file
This file contains 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
Param( | |
[string]$sauceUserName, | |
[string]$sauceAccessKey | |
) | |
Write-Host "sauce.userName that was passed in from Azure DevOps=>$sauceUserName" | |
Write-Host "sauce.accessKey that was passed in from Azure DevOps=>$sauceAccessKey" | |
[Environment]::SetEnvironmentVariable("SAUCE_USERNAME", "$sauceUserName", "User") | |
[Environment]::SetEnvironmentVariable("SAUCE_ACCESS_KEY", "$sauceAccessKey)", "User") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extra
)
aftersauceAccessKey
on line 9 ?