Link from cloud configuration to pre-filtered plugin manager
package jenkins.model.GlobalCloudConfiguration
import hudson.slaves.Cloud
+import jenkins.model.Jenkins
def f = namespace(lib.FormTagLib)
@@ -40,8 +41,10 @@ l.layout(norefresh:true, permission:app.ADMINISTER, title:my.displayName) {
}
st.adjunct(includes: "lib.form.confirm")
} else {
+ String label = Jenkins.get().updateCenter.getCategoryDisplayName("cloud")
+
p(_("There are no cloud implementations for dynamically allocated agents installed. "))
- a(href: rootURL + "/pluginManager/available", _("Go to plugin manager."))
+ a(href: rootURL + "/pluginManager/available?filter=" + URLEncoder.encode(label, "UTF-8"), _("Go to plugin manager."))
}
}
}
