File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 39
39
Param (
40
40
[string ]$BuildId ,
41
41
[string ]$DestinationFolder = $PSScriptRoot ,
42
- [string ]$AzSdkPersonalAccessToken = $ env: AzSdkPersonalAccessToken
42
+ [string ]$AzSdkPersonalAccessToken = ([ Environment ]::GetEnvironmentVariable( " AzSdkPersonalAccessToken" , " user " ))
43
43
)
44
44
45
- $user = $AzSdkPersonalAccessToken
46
45
$pass = $AzSdkPersonalAccessToken
47
- $pair = " ${user} :${pass} "
46
+ $pair = " :${pass} "
48
47
$bytes = [System.Text.Encoding ]::ASCII.GetBytes($pair )
49
48
$base64 = [System.Convert ]::ToBase64String($bytes )
50
49
$basicAuthValue = " Basic $base64 "
@@ -55,7 +54,7 @@ $apiVersion = "5.1-preview"
55
54
if ($BuildId -eq " " )
56
55
{
57
56
$buildReq = @ {
58
- Uri = " https://dev.azure.com/azure-sdk /internal/_apis/build/latest/azurestack-powershell%20-%20gen-sign?branchName=dev&api-version=${apiVersion} "
57
+ Uri = " https://dev.azure.com/azclitools /internal/_apis/build/latest/azurestack-powershell%20-%20gen-sign?branchName=dev&api-version=${apiVersion} "
59
58
Headers = $headers
60
59
}
61
60
@@ -64,7 +63,7 @@ if ($BuildId -eq "")
64
63
}
65
64
66
65
$listArtifactsReq = @ {
67
- Uri = " https://dev.azure.com/azure-sdk /internal/_apis/build/builds/${BuildId} /artifacts?api-version=${apiVersion} "
66
+ Uri = " https://dev.azure.com/azclitools /internal/_apis/build/builds/${BuildId} /artifacts?api-version=${apiVersion} "
68
67
Headers = $headers
69
68
}
70
69
You can’t perform that action at this time.
0 commit comments