File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 6262 pwsh : true
6363 workingDirectory : $(Build.SourcesDirectory)
6464 filePath : eng/scripts/SetTestPipelineVersion.ps1
65+ arguments : ' -BuildNumber $(Build.BuildNumber)'
6566
6667 - script : |
6768 echo "##vso[build.addbuildtag]Scheduled"
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ stages:
7070 pwsh : true
7171 workingDirectory : $(Build.SourcesDirectory)
7272 filePath : eng/scripts/SetTestPipelineVersion.ps1
73+ arguments : ' -BuildNumber $(Build.BuildNumber)'
7374
7475 - task : UsePythonVersion@0
7576 displayName : ' Use Python 3.6'
Original file line number Diff line number Diff line change 1- # Overides the project file and CHANGELOG.md for the template project using the next publishable version
1+ # Overides the project file and CHANGELOG.md for the template project.
22# This is to help with testing the release pipeline.
3+
4+ param (
5+ [Parameter (mandatory = $true )]
6+ $BuildNumber
7+ )
8+
39. " ${PSScriptRoot} \..\common\scripts\common.ps1"
410$latestTags = git tag - l " azure-sdk-template_*"
511$semVars = @ ()
@@ -16,7 +22,9 @@ $semVarsSorted = [AzureEngSemanticVersion]::SortVersionStrings($semVars)
1622LogDebug " Last Published Version $ ( $semVarsSorted [0 ]) "
1723
1824$newVersion = [AzureEngSemanticVersion ]::ParseVersionString($semVarsSorted [0 ])
19- $newVersion.IncrementAndSetToPrerelease ()
25+ $newVersion.PrereleaseLabel = " beta"
26+ $newVersion.PrereleaseNumber = $BuildNumber
27+
2028LogDebug " Version to publish [ $ ( $newVersion.ToString ()) ]"
2129
2230$pomFileContent = New-Object - TypeName XML
You can’t perform that action at this time.
0 commit comments