Skip to content
New issue

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

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

Already on GitHub? # to your account

Adopt Copy Data To Workspace Plugin #4311

Merged

Conversation

jimmyleocn
Copy link
Contributor

@jimmyleocn jimmyleocn commented Feb 22, 2025

Link to GitHub repository

https://github.com/jenkinsci/copy-data-to-workspace-plugin

When modifying release permission

List the GitHub usernames of the users who should have commit permissions below:

  • @jimmyleocn

This is needed in order to cut releases of the plugin or component.

If you are modifying the release permission of your plugin or component, fill out the following checklist:

Release permission checklist (for submitters)

  • The usernames of the users added to the "developers" section in the .yml file are the same the users use to log in to accounts.jenkins.io.
  • All users added have logged in to Artifactory and Jira once.
  • I have mentioned an existing team member of the plugin or component team to approve this request.

When enabling automated releases (cd: true)

Follow the documentation to ensure, your pull request is set up properly. Don't merge it yet.
In case of changes requested by the hosting team, an open PR facilitates future reviews, without derailing work across multiple PRs.

Link to the PR enabling CD in your plugin

CD checklist (for submitters)

  • I have provided a link to the pull request in my plugin, which enables CD according to the documentation.

Reviewer checklist

  • Check that the $pluginId Developers team has Admin permissions while granting the access.
  • In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
  • If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it.

@jimmyleocn jimmyleocn requested a review from a team as a code owner February 22, 2025 03:13
@alecharp
Copy link
Contributor

Hi @jimmyleocn, it seems that you have modified the file extensively. Could you please make sure to only change the lines you intent to modify (developers array imo).

Could you please make sure to login Jira and Artifactory using your account from accounts.jenkins.io? Thanks.

@alecharp alecharp added the needs initial login The users need to log in to Jira and/or Artifactory label Feb 25, 2025
@jimmyleocn
Copy link
Contributor Author

Hi @jimmyleocn, it seems that you have modified the file extensively. Could you please make sure to only change the lines you intent to modify (developers array imo).

I can revert my commit and create a new one that only updates the developers field. However, I'm wondering about the paths field - do I need to add a new path to match the groupId 'org.jenkins-ci.plugins' that I've changed in the pom.xml?

Could you please make sure to login Jira and Artifactory using your account from accounts.jenkins.io? Thanks.

I can confirm that I’ve logged into both sites using my Jenkins account.

@alecharp

@MarkEWaite
Copy link
Contributor

I can revert my commit and create a new one that only updates the developers field. However, I'm wondering about the paths field - do I need to add a new path to match the groupId 'org.jenkins-ci.plugins' that I've changed in the pom.xml?

I believe that changing the groupID in the pom file is not a good choice. Users don't see the group ID but users might be disrupted if a change of the groupID causes Jenkins to believe that it is a new plugin rather than an upgrade of an existing plugin.

I'm not confident on the precise details of the cases where groupID and artifactID can be changed, but I am confident that leaving them unchanged is almost always the right choice.

@jimmyleocn
Copy link
Contributor Author

I can revert my commit and create a new one that only updates the developers field. However, I'm wondering about the paths field - do I need to add a new path to match the groupId 'org.jenkins-ci.plugins' that I've changed in the pom.xml?

I believe that changing the groupID in the pom file is not a good choice. Users don't see the group ID but users might be disrupted if a change of the groupID causes Jenkins to believe that it is a new plugin rather than an upgrade of an existing plugin.

I'm not confident on the precise details of the cases where groupID and artifactID can be changed, but I am confident that leaving them unchanged is almost always the right choice.

What I mean is, in pom.xml, the /project/parent/groupId node was originally 'org.jvnet.hudson.plugins'. It seems we'll get build errors if we don't update it to 'org.jenkins-ci.plugins' when upgrading to the newer parent version 4.75?

@alecharp
Copy link
Contributor

It's true that as the plugin used a very old parent pom, it has the old groupId. I think it's fine to have the new path here.
But we would greatly appreciate if the only changes in the pull request were the develops and path entries.

@jimmyleocn
Copy link
Contributor Author

It's true that as the plugin used a very old parent pom, it has the old groupId. I think it's fine to have the new path here. But we would greatly appreciate if the only changes in the pull request were the develops and path entries.

All done on revert and recommit. Would you like help me to check if everything is OK? Thanks!

@mawinter69
Copy link
Contributor

To my knowledge a plugin is solely identified by its artifactid. The groupid doesn't matter at all.

@timja
Copy link
Member

timja commented Feb 25, 2025

To my knowledge a plugin is solely identified by its artifactid. The groupid doesn't matter at all.

Yes although it breaks any bom/renovate/dependabot automatic updates

@jimmyleocn jimmyleocn force-pushed the adopt-copy-data-to-workspace-plugin branch from f3df716 to 83ee7cb Compare February 26, 2025 12:44
@alecharp
Copy link
Contributor

This looks good. Thanks for adopting the plugin @jimmyleocn.

@alecharp alecharp merged commit ed0a673 into jenkins-infra:master Feb 26, 2025
3 checks passed
@jimmyleocn
Copy link
Contributor Author

jimmyleocn commented Feb 26, 2025

This looks good. Thanks for adopting the plugin @jimmyleocn.

Thanks for your help, and thanks to @timja for the suggestions as well!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
needs initial login The users need to log in to Jira and/or Artifactory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants