Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release script) use the new staging repository layout maven when staging a release #290

Merged
merged 2 commits into from
Sep 22, 2022

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented Sep 21, 2022

Ref. jenkins-infra/helpdesk#3143. (line edited at this PR does not fix any problem).

It ensures that the specified staging repository uses the new maven-deploy layout as per https://maven.apache.org/plugins/maven-deploy-plugin/#major-version-upgrade-to-version-3-0-0.

In order to merge PR, I need help by Maven expert to confirm that I'm not doing something crazy here.

Ping @basil @jglick @jnord @daniel-beck @timja @MarkEWaite you are my Maven experts 🍯 May I get your advise?

@dduportal dduportal requested a review from a team as a code owner September 21, 2022 15:47
@dduportal
Copy link
Contributor Author

Copy link
Contributor

@basil basil left a comment

Choose a reason for hiding this comment

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

This PR fixes jenkins-infra/helpdesk#3143.

No. See my subsequent comments in that ticket for analysis.

Maven Release Plugin 3.x is backward compatible with the older -DstagingRepository format, so while this change is positive in that it migrates us to the new format, it is not strictly necessary for correctness. Approving this based on the fact that the new format is preferred over the old format, and we are using Maven Release Plugin 3.x (which accepts the new format) on both the main branch and the stable-2.361 branch. Note that if, for some reason, we had to downgrade Maven Release Plugin back to 2.x, we would also have to go back to the old format.

@dduportal
Copy link
Contributor Author

I'm setting this PR as draft because of the following argument:

Note that if, for some reason, we had to downgrade Maven Release Plugin back to 2.x, we would also have to go back to the old format.

Rationale is that we might need to revert the Maven release plugin to 2.x to unblock staging releases given the direction of jenkins-infra/helpdesk#3143 .

@dduportal dduportal marked this pull request as draft September 22, 2022 08:05
@timja
Copy link
Member

timja commented Sep 22, 2022

Rationale is that we might need to revert the Maven release plugin to 2.x to unblock staging releases given the direction of jenkins-infra/helpdesk#3143 .

If so just revert this PR?

The maintainers of Maven have said that format is deprecated and they will likely drop it in 4.x, they were quite resistant in even adding this backwards compatibility from looking at the issue.

@dduportal dduportal marked this pull request as ready for review September 22, 2022 10:26
@dduportal
Copy link
Contributor Author

Sure. I've updated the PR, fixed conflicts, it's ready to be reviewed, approved and merged.

@dduportal dduportal merged commit 7ee5c5c into master Sep 22, 2022
@dduportal dduportal deleted the fix/maven-staging-release branch September 22, 2022 11:01
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.

3 participants