diff options
Diffstat (limited to 'cns-libs/templates/jenkins/groovy/install_mvn339.groovy')
-rw-r--r-- | cns-libs/templates/jenkins/groovy/install_mvn339.groovy | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cns-libs/templates/jenkins/groovy/install_mvn339.groovy b/cns-libs/templates/jenkins/groovy/install_mvn339.groovy deleted file mode 100644 index 4776d240..00000000 --- a/cns-libs/templates/jenkins/groovy/install_mvn339.groovy +++ /dev/null @@ -1,19 +0,0 @@ -import hudson.tasks.Maven.MavenInstallation; -import hudson.tools.InstallSourceProperty; -import hudson.tools.ToolProperty; -import hudson.tools.ToolPropertyDescriptor; -import hudson.util.DescribableList; - -def mavenDesc = jenkins.model.Jenkins.instance.getExtensionList(hudson.tasks.Maven.DescriptorImpl.class)[0] - -def isp = new InstallSourceProperty() -def autoInstaller = new hudson.tasks.Maven.MavenInstaller("3.3.9") -isp.installers.add(autoInstaller) - -def proplist = new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>() -proplist.add(isp) - -def installation = new MavenInstallation("Maven 3.3.9", "", proplist) - -mavenDesc.setInstallations(installation) -mavenDesc.save() |