Use 'none' environment for auto-release publish#49917
Open
raych1 wants to merge 2 commits into
Open
Conversation
…al gate Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: be08fe73-b4ca-4c26-b3e7-58b20bba23e3
|
Azure Pipelines: Successfully started running 1 pipeline(s). 34 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Java auto-release batch pipeline so that Maven Central publishing (ESRP deployment) uses an Azure DevOps environment with no approval gates during post-merge auto-release runs on main, while preserving the existing approval-gated environment for other (non-auto-release) executions.
Changes:
- Adds a template-time conditional to set
environment: nonefor auto-release runs (internal project,IndividualCI,refs/heads/main, nottests-weekly). - Keeps
environment: ${{ parameters.PublicPublishEnvironment }}for all other publish scenarios to retain manual approval gating.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: be08fe73-b4ca-4c26-b3e7-58b20bba23e3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
The Maven Central publish deployment now targets the
noneenvironment for auto-release runs.Why
Auto-release is a fully automated post-merge CI flow on
main; a manual approval gate would block the publish step.Impact
Manual releases are unaffected and keep using the existing approval-gated public publish environment.
Note
nonemust be, or will be auto-created as, an Azure DevOps environment with no approvals/checks.