update script again
This commit is contained in:
Родитель
8d069da679
Коммит
3f15e7734b
|
@ -46,10 +46,10 @@ steps:
|
|||
|
||||
- pwsh: |
|
||||
$url = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$env:SYSTEM_TEAMPROJECTID/_apis/build/builds/$(Build.BuildId)/artifacts?artifactName=packages&api-version=5.1"
|
||||
$buildPipeline= Invoke-RestMethod -Uri $url -Headers @{ Authorization = "Bearer $env:SYSTEM_ACCESSTOKEN" } -Method Get
|
||||
$buildPipeline= Invoke-RestMethod -Uri $url -Method Get
|
||||
$ArtifactDownloadURL= $buildPipeline.resource.downloadUrl
|
||||
$ArtifactDownloadURL = $ArtifactDownloadURL -replace "format=zip","format=file&subPath=%2Fautorest-modelerfour-$(artver).tgz"
|
||||
echo $ArtifactDownloadURL
|
||||
echo "URL: '$ArtifactDownloadURL'"
|
||||
$enc = [System.Web.HttpUtility]::UrlEncode($ArtifactDownloadURL)
|
||||
$downurl = (iwr "http://tinyurl.com/api-create.php?url=$enc" ).Content
|
||||
echo "##vso[task.setvariable variable=DOWNURL]$downurl"
|
||||
|
|
Загрузка…
Ссылка в новой задаче