File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ stages:
3838 pwsh : true
3939 workingDirectory : $(Build.SourcesDirectory)
4040 filePath : eng/scripts/SetTestPipelineVersion.ps1
41+ arguments : ' -BuildNumber $(Build.BuildNumber)'
4142 - template : /eng/common/pipelines/templates/steps/verify-changelog.yml
4243 parameters :
4344 PackageName : ${{artifact.name}}
Original file line number Diff line number Diff line change 1212 pwsh : true
1313 workingDirectory : $(Build.SourcesDirectory)
1414 filePath : eng/scripts/SetTestPipelineVersion.ps1
15+ arguments : ' -BuildNumber $(Build.BuildNumber)'
1516
1617 - pwsh : |
1718 $folder = "${{parameters.ServiceDirectory}}"
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.
33
4+ param (
5+ [Parameter (mandatory = $true )]
6+ $BuildNumber
7+ )
8+
49. " ${PSScriptRoot} \..\common\scripts\common.ps1"
510$latestTags = git tag - l " @azure/template_*"
611$semVars = @ ()
@@ -18,8 +23,8 @@ $semVarsSorted = [AzureEngSemanticVersion]::SortVersionStrings($semVars)
1823LogDebug " Last Published Version $ ( $semVarsSorted [0 ]) "
1924
2025$newVersion = [AzureEngSemanticVersion ]::ParseVersionString($semVarsSorted [0 ])
21- $newVersion.IncrementAndSetToPrerelease ()
22- LogDebug " Version to publish [ $ ( $ newVersion.ToString () ) ] "
26+ $newVersion.PrereleaseLabel = " beta "
27+ $ newVersion.PrereleaseNumber = $BuildNumber
2328
2429$packageFileContent = Get-Content - Path $templatePackageFile | ConvertFrom-Json
2530LogDebug " Version in Source $ ( $packageFileContent.version ) "
You can’t perform that action at this time.
0 commit comments