Max Katz
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
0 deletions
-
azure-pipelines.yml
|
|
|
@ -11,6 +11,10 @@ jobs: |
|
|
|
inputs: |
|
|
|
targetType: 'inline' |
|
|
|
script: | |
|
|
|
$Namespace = @{ msbuild = "http://schemas.microsoft.com/developer/msbuild/2003" } |
|
|
|
$versionBase = Select-Xml -Path build\SharedVersion.props -XPath /msbuild:Project/msbuild:PropertyGroup/msbuild:Version -Namespace $Namespace |ForEach-Object {$_.Node.Innerxml} |
|
|
|
Write-Host "Base Version Number is:-" $versionBase |
|
|
|
|
|
|
|
$prId = $env:System_PullRequest_PullRequestNumber |
|
|
|
Write-Host "PR Number is:-" $env:System_PullRequest_PullRequestNumber |
|
|
|
|
|
|
|
@ -18,6 +22,10 @@ jobs: |
|
|
|
{ |
|
|
|
Set-Content -Path $env:Build_ArtifactStagingDirectory\prId.txt -Value $prId |
|
|
|
} |
|
|
|
if (!([string]::IsNullOrWhiteSpace($versionBase))) |
|
|
|
{ |
|
|
|
Set-Content -Path $env:Build_ArtifactStagingDirectory\versionBase.txt -Value $versionBase |
|
|
|
} |
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1 |
|
|
|
inputs: |
|
|
|
|