File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
resources/hudson/slaves/Cloud
test/src/test/java/jenkins/util Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -o xtrace
66cd " $( dirname " $0 " ) "
77
88# https://github.com/jenkinsci/acceptance-test-harness/releases
9- export ATH_VERSION=6504.v878e5b_e776d7
9+ export ATH_VERSION=6507.vef7dc6b_6f5c4
1010
1111if [[ $# -eq 0 ]]; then
1212 export JDK=21
Original file line number Diff line number Diff line change 4141 * unclear, {@link #SetContextClassLoader(ClassLoader)} can be used as a fallback with {@link
4242 * PluginManager.UberClassLoader} as the argument, though this is not as safe since lookups could be
4343 * ambiguous in case two unrelated plugins both bundle the same library. In functional tests, {@code
44- * RealJenkinsRule.Endpoint } can be used to reference a class loader that has access to the plugins
45- * defined in the test scenario.
44+ * jenkinsRule.getPluginManager().uberClassLoader } can be used to reference a class loader that has
45+ * access to the plugins defined in the test scenario.
4646 *
4747 * <p>See <a
4848 * href="https://www.jenkins.io/doc/developer/plugin-development/dependencies-and-class-loading/#context-class-loaders">the
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ THE SOFTWARE.
2727 <l : header />
2828 <l : side-panel >
2929 <l : tasks >
30- <l : task contextMenu =" false" href =" ." icon =" symbol-computer" title =" ${%Status}" />
31- <l : task href =" configure" icon =" symbol-settings"
30+ <j : set var =" url" value =" ${h.getNearestAncestorUrl(request2,it)}" />
31+ <l : task contextMenu =" false" href =" ${url}/" icon =" symbol-computer" title =" ${%Status}" />
32+ <l : task href =" ${url}/configure" icon =" symbol-settings"
3233 title =" ${app.hasPermission(app.ADMINISTER) ? '%Configure' : '%View Configuration'}" />
33- <l : delete permission =" ${app.ADMINISTER}" title =" ${%Delete Cloud}" message =" ${%delete.cloud(it.displayName)}" />
34+ <l : delete permission =" ${app.ADMINISTER}" title =" ${%Delete Cloud}" message =" ${%delete.cloud(it.displayName)}" urlPrefix = " ${url} " />
3435 <t : actions />
3536 </l : tasks >
3637 <j : forEach var =" action" items =" ${it.allActions}" >
Original file line number Diff line number Diff line change 66import org .junit .jupiter .api .Test ;
77import org .junit .jupiter .api .extension .RegisterExtension ;
88import org .jvnet .hudson .test .JenkinsRule ;
9- import org .jvnet .hudson .test .RealJenkinsRule ;
109import org .jvnet .hudson .test .junit .jupiter .RealJenkinsExtension ;
1110
1211class SetContextClassLoaderTest {
@@ -20,7 +19,7 @@ void positive() throws Throwable {
2019 }
2120
2221 private static void _positive (JenkinsRule r ) throws ClassNotFoundException {
23- try (SetContextClassLoader sccl = new SetContextClassLoader (RealJenkinsRule . Endpoint . class )) {
22+ try (SetContextClassLoader sccl = new SetContextClassLoader (r . getPluginManager (). uberClassLoader )) {
2423 assertEquals ("hudson.tasks.Mailer$UserProperty" , getUserPropertyClass ().getName ());
2524 }
2625 }
You can’t perform that action at this time.
0 commit comments