[8.x](backport #42304) Allow use of version qualifier for staging artifacts #42319
+22
−8
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.
Proposed commit message
This commits adds support for an optional $VERSION_QUALIFIER env var/build option in the packaging pipeline to allow building prerelease artifacts from staging.
How to test this PR locally
Tested a staging build using this PR with
VERSION_QUALIFIER="alpha1"
(also passedDRA_BRANCH="main"
as this PR is based on main and we'd normally have tested alpha1 on main until 9.0 is cut): https://buildkite.com/elastic/beats-packaging-pipeline/builds/2138#01946b34-0e11-40b0-9610-cc647d2bea1eAlso tested a snapshot build (using
DRA_BRANCH="main"
andRUN_SNAPSHOT="true"
) to ensure that an empty--qualifier
option works as advertised by the release manager: https://buildkite.com/elastic/beats-packaging-pipeline/builds/2143Related issues
https://github.com/elastic/ingest-dev/issues/4857
This is an automatic backport of pull request #42304 done by [Mergify](https://mergify.com).