Allow the user to set the package version when running the azdo pipeline #8151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #8149
This allows the user to explicitly set the package version when running the azdo pipeline. Normally, using
$(Build.BuildNumber)
works just fine. But VS is strict about version relationships between their release branches, and we need to be able to patch the 17.10 branch with the new version still being lower than 17.11+ and also lower than main. Since the build numbers are always increasing, there isn't a way to do this currently.So this change enables this functionality. The value will be set to the current build number if the user doesn't specify a version (the value can't be an empty string for runtime parameters unfortunately, so I set the default to
currentBuildNumber
. Otherwise, the value will be set to whatever the user specifies.Testing
IN PROGRESS
set_package_version
branch. That run is at https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10920395&view=results. I left the PTVS package version as the default value ofcurrentBuildNumber
. Then I downloaded the bootstrapper from our build artifacts and ran it, installing the Python workload. I verified that the version inHelp -> About
matched the build number:set_package_version
branch. That run is at https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10920896&view=results. I set the PTVS package version to9999.99
. Then I downloaded the bootstrapper from our build artifacts and ran it, installing the python workload. I verified that the version inHelp -> About
matched the version I set: