Skip to content

Use 'none' environment for auto-release publish#49917

Open
raych1 wants to merge 2 commits into
mainfrom
users/raych1/update-env
Open

Use 'none' environment for auto-release publish#49917
raych1 wants to merge 2 commits into
mainfrom
users/raych1/update-env

Conversation

@raych1

@raych1 raych1 commented Jul 23, 2026

Copy link
Copy Markdown
Member

What

The Maven Central publish deployment now targets the none environment 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

none must be, or will be auto-created as, an Azure DevOps environment with no approvals/checks.

…al gate

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: be08fe73-b4ca-4c26-b3e7-58b20bba23e3
Copilot AI review requested due to automatic review settings July 23, 2026 18:49
@raych1
raych1 requested review from benbp and mikeharder as code owners July 23, 2026 18:49
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: none for auto-release runs (internal project, IndividualCI, refs/heads/main, not tests-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants