-
-
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
[JEP-230] [JENKINS-55582] Convert instance-identity
to a detached plugin
#6585
Conversation
…-identity-JEP-230
…er version from the UC when running the Setup Wizard
@@ -256,11 +256,6 @@ THE SOFTWARE. | |||
<artifactId>remoting</artifactId> | |||
<version>${remoting.version}</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.jenkins-ci.modules</groupId> | |||
<artifactId>instance-identity</artifactId> |
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.
Once this is released, bom-weekly
can get it.
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.
Though if I understand correctly from jenkinsci/bom#671 jenkinsci/bom#570 (comment) jenkinsci/bom#681, it cannot be added until this PR is in the oldest supported line, so that will be a while. In the meantime the handful of plugins using this dep can specify 3.1.
@@ -423,7 +419,7 @@ THE SOFTWARE. | |||
<artifactItem> | |||
<groupId>org.jenkins-ci.modules</groupId> | |||
<artifactId>sshd</artifactId> | |||
<version>3.0.3</version> | |||
<version>3.236.ved5e1b_cb_50b_2</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.
@@ -399,7 +395,7 @@ THE SOFTWARE. | |||
<artifactItem> | |||
<groupId>org.jenkins-ci.plugins</groupId> | |||
<artifactId>bouncycastle-api</artifactId> | |||
<version>2.25</version> | |||
<version>2.26</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.
dep of current instance-identity
* JEP-230 edits * Linking to jenkinsci/jenkins#6585 * Treating JEP-230 as accepted
Other than `instance-identity` itself, known to be used from: * `support-core` * `pipeline-restful-api` * `operations-center-server` (CloudBees CI) * `devoptics` (CloudBees, but not CI)
jenkins/core/src/main/java/jenkins/security/ResourceDomainConfiguration.java Lines 148 to 190 in f9912f5
|
Not going to bother with that. If you avoid installing |
|
||
javax-activation-api 2.330 1.2.0-2 | ||
javax-mail-api 2.330 1.6.2-5 | ||
|
||
# JENKINS-55582 | ||
instance-identity 2.348 3.1 |
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.
Note: split point may need to be updated just before merge.
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.
(have been trying to keep this up to date when merging in master
, but whoever finally merges this PR should double-check)
…stance-identity-JEP-230
…stance-identity-JEP-230
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.
+1 for pushing it forward
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
Whoever is merging, please bear in mind #6585 (comment) |
…stance-identity-JEP-230
…lugin (jenkinsci#6585) Co-authored-by: Basil Crow <me@basilcrow.com> Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Caused ATH failure: jenkinsci/acceptance-test-harness#796 |
Likely cause of JENKINS-70206. |
Whilst the test was correct that RJR would load detached plugins it was actually relying on it to do so to load instance-idenentity so that JNLP (sic) agents would work. if RJR is updated then this assumption no longer holds and the test would time out waiting for the JNLP agent to connect. instance-identity is already in the test classpath - and we are not testing that this functionality works with no plugins or a limited set, so no longer remove any test scoped plugin from the test. ammends #6585
Caused (sort of)/revealed JENKINS-75145. |
See JEP-230, especially as of jenkinsci/jep#389. Continues work done in #5304 and #6570.
Sanity testing: start Jenkins from scratch; accept default plugins; check that
/instance-identity/
endpoint works; create an inbound TCP agent (need to first enable TCP port) and connect; run a Pipeline build on it. Disableinstance-identity
despite stern warnings and restart—the agent will not work, and there are also various errors fromsshd
andgithub
plugins. Enable it again and restart—back to normal. Enable SSHD and use the CLI in-ssh
mode and viassh
.Proposed changelog entries
instance-identity
module has been converted to 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.1 or later) in order to restore this functionality. In particular, inbound agents using TCP (but not WebSocket) transport require this plugin to be installed. There may be other cases, which can be identified by use of APIs in thejenkins.model.identity
package rather than directly accessingorg.jenkinsci.main.modules.instance_identity
.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).