From 5b485c6c570dc72327f0f0f72fb11fd9ce23cb82 Mon Sep 17 00:00:00 2001 From: Daniel Beck Date: Sun, 19 Apr 2020 14:44:57 +0200 Subject: [PATCH] Link from cloud configuration to pre-filtered plugin manager --- .../jenkins/model/GlobalCloudConfiguration/index.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/jenkins/model/GlobalCloudConfiguration/index.groovy b/core/src/main/resources/jenkins/model/GlobalCloudConfiguration/index.groovy index 0f771dc412..bb83bd6e60 100644 --- a/core/src/main/resources/jenkins/model/GlobalCloudConfiguration/index.groovy +++ b/core/src/main/resources/jenkins/model/GlobalCloudConfiguration/index.groovy @@ -1,6 +1,7 @@ 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.")) } } } -- GitLab