-
Bug
-
Resolution: Fixed
-
Major
-
None
The acceptance test harness must restart Jenkins after plugin installation due to the fact that outdated, detached plugins are installed by default. As per this outdated commit, it looks like the intent is just to fix failing tests which have never had to declare detached plugins in their WithPlugins.
One impact of this is that almost every test case must restart Jenkins because it installs updated plugins over the existing detached ones, which prevents dynamic deployment from working.
I think we actually must take the hard path here and fix up the WithPlugins to be accurate.
- is blocked by
-
JENKINS-37545 Manual installation of plugins in Jenkins2 does not follow detached plugins
-
- Open
-
- relates to
-
JENKINS-40092 slave.jar copy via SCP fails in 2.33+
-
- Closed
-
- links to
[JENKINS-38307] ATH erroneously installs detached plugins, causing needless restarts
Description |
Original:
The acceptance test harness must restart Jenkins after plugin installation due to the fact that outdated, [detached plugins are installed|https://github.com/jenkinsci/acceptance-test-harness/blob/c1512e4da9dc3b4dd701988dae103eaec405ec25/src/main/java/org/jenkinsci/test/acceptance/controller/LocalController.java#L182] by default. As per this [outdated commit|https://github.com/jenkinsci/acceptance-test-harness/commit/61e55fa7517efd2ee41b61312d6659c0ce31d0a2], it looks like the intent is just to fix failing tests which have never had to declare detached plugins in their WithPlugins. I think we actually must take the hard path here and fix up the WithPlugins to be accurate. |
New:
The acceptance test harness must restart Jenkins after plugin installation due to the fact that outdated, [detached plugins are installed|https://github.com/jenkinsci/acceptance-test-harness/blob/c1512e4da9dc3b4dd701988dae103eaec405ec25/src/main/java/org/jenkinsci/test/acceptance/controller/LocalController.java#L182] by default. As per this [outdated commit|https://github.com/jenkinsci/acceptance-test-harness/commit/61e55fa7517efd2ee41b61312d6659c0ce31d0a2], it looks like the intent is just to fix failing tests which have never had to declare detached plugins in their WithPlugins. One impact of this is that almost every test case must restart Jenkins because it installs updated plugins over the existing detached ones, which prevents dynamic deployment from working. I think we actually must take the hard path here and fix up the WithPlugins to be accurate. |
Assignee | Original: Oliver Gondža [ olivergondza ] | New: Ryan Campbell [ recampbell ] |
Remote Link | New: This issue links to "PR (Web Link)" [ 14850 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Link | New: This issue is blocked by JENKINS-37545 [ JENKINS-37545 ] |
Link |
New:
This issue relates to |
It turns out that much of the trouble making this work is caused by JENKINS-37545. Plugins with old parent poms will pull in the correct dependencies when installed via the update center, but those dependencies won't be installed when the plugin is uploaded.