2019-10-30 21:34:42 +03:00
|
|
|
|
Param(
|
|
|
|
|
[Parameter(mandatory=$true)]
|
|
|
|
|
[String]$1esPat,
|
|
|
|
|
[Parameter(mandatory=$true)]
|
|
|
|
|
[String]$cbPat,
|
|
|
|
|
[Parameter(mandatory=$true)]
|
|
|
|
|
[String]$ncPath,
|
|
|
|
|
[Parameter(mandatory=$true)]
|
|
|
|
|
[String]$msEngGitPat,
|
|
|
|
|
[Parameter(mandatory=$true)]
|
|
|
|
|
[String]$args
|
|
|
|
|
)
|
2021-02-26 23:14:00 +03:00
|
|
|
|
[Environment]::SetEnvironmentVariable("1ESSHAREDASSETS_BUILDXL_FEED_PAT", $1esPat, "Process")
|
|
|
|
|
[Environment]::SetEnvironmentVariable("CLOUDBUILD_BUILDXL_SELFHOST_FEED_PAT", $cbPat, "Process")
|
2019-10-30 21:34:42 +03:00
|
|
|
|
[Environment]::SetEnvironmentVariable("MSENG_GIT_PAT", $msEngGitPat, "Process")
|
2021-02-26 23:14:00 +03:00
|
|
|
|
[Environment]::SetEnvironmentVariable("NUGET_CREDENTIALPROVIDERS_PATH", $ncPath, "Process")
|
|
|
|
|
|
2023-11-08 00:16:34 +03:00
|
|
|
|
# NPM authentication requires the PAT to be base64 encoded first
|
|
|
|
|
$cbPatBytes = [System.Text.Encoding]::UTF8.GetBytes($cbPat)
|
|
|
|
|
$b64CloudbuildPat = [Convert]::ToBase64String($cbPatBytes)
|
|
|
|
|
[Environment]::SetEnvironmentVariable("CLOUDBUILD_BUILDXL_SELFHOST_FEED_PAT_B64", $b64CloudbuildPat, "Process")
|
|
|
|
|
|
2022-08-02 22:49:04 +03:00
|
|
|
|
[Environment]::SetEnvironmentVariable(
|
|
|
|
|
"VSS_NUGET_EXTERNAL_FEED_ENDPOINTS",
|
|
|
|
|
<#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]#>
|
2024-03-07 03:45:20 +03:00
|
|
|
|
"{ `"endpointCredentials`": [ {`"endpoint`":`"https://pkgs.dev.azure.com/1essharedassets/_packaging/BuildXL/nuget/v3/index.json`", `"password`":`"$1esPat`"}, {`"endpoint`":`"https://pkgs.dev.azure.com/cloudbuild/_packaging/BuildXL.Selfhost/nuget/v3/index.json`", `"password`":`"$cbPat`"} ]}",
|
2022-08-02 22:49:04 +03:00
|
|
|
|
"Process")
|
2021-02-26 03:10:35 +03:00
|
|
|
|
|
2019-10-30 21:34:42 +03:00
|
|
|
|
.\RunCheckInTests.cmd /lab $args /internal
|