-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[JENKINS-55582] [JEP-230] Split instance-identity
to a plugin
#6570
Conversation
instance-identity
to a plugin
@@ -415,7 +411,7 @@ THE SOFTWARE. | |||
<artifactItem> | |||
<groupId>org.jenkins-ci.modules</groupId> | |||
<artifactId>sshd</artifactId> | |||
<version>3.0.3</version> | |||
<version>3.1.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to avoid this error:
java.io.IOException: Failed to load: Jenkins GIT server Plugin (git-server 1.11)
- Update required: SSH server (sshd 3.0.3) to be updated to 3.1.0 or higher
at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994)
at hudson.PluginManager.dynamicLoad(PluginManager.java:926)
Caused: java.io.IOException: Failed to install git-server plugin
at hudson.PluginManager.dynamicLoad(PluginManager.java:940)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2217)
Caused: java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2221)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1867)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:121)
at java.base/java.lang.Thread.run(Thread.java:829)
@Issue("JENKINS-49543") | ||
public void moduleClassesShouldBeWhitelisted() { | ||
ClassFilterImpl filter = new ClassFilterImpl(); | ||
filter.check("org.jenkinsci.modules.windows_slave_installer.WindowsSlaveInstaller"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, forgot about this, thanks.
<artifactItem> | ||
<groupId>org.jenkins-ci.modules</groupId> | ||
<artifactId>instance-identity</artifactId> | ||
<version>3.0.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want jenkinsci/instance-identity-plugin#21 released first. 3.0 & 3.0.1 should be considered broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A request made without reasoning. I will not accommodate such a request unless reasoning is provided.
instance-identity
to a plugininstance-identity
to a plugin
As per https://github.com/jenkinsci/jep/blob/master/jep/230/README.adoc#backwards-compatibility the upgrade guidelines should emphasize that the newly detached plugin is required for inbound TCP agents ( It would be nicer to actually delete this plugin and inline it into core. Generating an RSA keypair is easy enough; but some callers (incl. TCP agents) need an |
I do not think so. As in #6570 (comment) those releases should continue to be blacklisted. Any new version should automatically appear. |
These upgrade guidelines were taken directly from your original work, Jesse. If you don't like them, please fix them up yourself. I am trying to help you finish this work. I did not ask for you to review this change, and I am not willing to do a large amount of additional work to finish this. |
Also jenkins/core/src/main/java/hudson/slaves/JNLPLauncher.java Lines 251 to 253 in 62fbc3a
jenkins/core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol4.java Lines 104 to 111 in 62fbc3a
|
A request made without reasoning. I will not accommodate such a request unless reasoning is provided. |
Understood, and I was not expecting someone else to take this over either. The original was indeed a work in progress and there are some missing pieces. |
No good deed goes unpunished. |
Your work here was helpful and appreciated—gets JEP-230 that much closer and should make it easier for me to finish up. |
Please do not make requests of me in the future without providing the reasoning. |
The merge of #6543 makes it finally practical to complete what was started in #5304.
Testing done
Ran Jenkins against a clean home directory with
java -jar jenkins.war
and completed the setup wizard successfully. Verified there were no warnings for any plugins after completing the setup wizard.Next steps
If approved, https://github.com/jenkins-infra/update-center2/blob/d4bcc4ce0041e00b4a6a9773d24c4cd84731c4c7/resources/artifact-ignores.properties#L527-L529= will need to be adjusted to restore
instance-identity
to the Update Center.Proposed changelog entries
Convert the
instance-identity
module into a (detached) plugin.Proposed upgrade guidelines
Normally the new plugin will be automatically installed. If you use an “as-code” installation mechanism like a text file with a list of plugins, you may need to add
instance-identity
(version 3.0.1 or later) in order to restore this functionality.Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgrade@Restricted
or have@since TODO
Javadoc, as appropriate.Desired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are accurate, human-readable, and in the imperative moodupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).