Open matkoch opened 7 years ago
In order to make PR builds immediately available:
+:refs/pull/*/head
<Package>-PR-<Sequence>
if ((Get-FileHash "./build.cake").Hash -ne "%BuildScriptHash%") { Write-Host "##teamcity[buildProblem description='BuildScript Validation failed.']" }
$pair = "$(%username%):$(%password%)"
$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair)) $basicAuthValue = "Basic $encodedCreds" $Headers = @{ Authorization = $basicAuthValue }
Invoke-WebRequest -Uri 'https://teamcity.jetbrains.com/httpAuth/app/rest/projects/Testfx/parameters/BuildScriptHash' -Headers $Headers -ContentType "text/plain" -Method PUT ` -Body "hash"
-Uri 'https://teamcity.jetbrains.com/httpAuth/app/rest/projects/Testfx/parameters/BuildScriptHash'
-ContentType "text/plain"
In order to make PR builds immediately available:
+:refs/pull/*/head
according to the blog post<Package>-PR-<Sequence>
and publish to MyGet$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair)) $basicAuthValue = "Basic $encodedCreds" $Headers = @{ Authorization = $basicAuthValue }
Invoke-WebRequest
-Uri 'https://teamcity.jetbrains.com/httpAuth/app/rest/projects/Testfx/parameters/BuildScriptHash'
-Headers $Headers-ContentType "text/plain"
-Method PUT ` -Body "hash"