Skip to content

Instantly share code, notes, and snippets.

@nikolay-advolodkin
Created September 23, 2018 21:29
Show Gist options
  • Save nikolay-advolodkin/8e8df8d4e8e7878e8febfd139c433d0b to your computer and use it in GitHub Desktop.
Save nikolay-advolodkin/8e8df8d4e8e7878e8febfd139c433d0b to your computer and use it in GitHub Desktop.
Set sauce environment variables from .ps1 file
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")
@kolya182
Copy link

kolya182 commented Mar 5, 2019

Extra ) after sauceAccessKey on line 9 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment