diff options
Diffstat (limited to 'cns-libs/templates/jenkins/groovy')
4 files changed, 0 insertions, 53 deletions
diff --git a/cns-libs/templates/jenkins/groovy/install_jdk8.groovy b/cns-libs/templates/jenkins/groovy/install_jdk8.groovy deleted file mode 100644 index fb104cdb..00000000 --- a/cns-libs/templates/jenkins/groovy/install_jdk8.groovy +++ /dev/null @@ -1,23 +0,0 @@ -import jenkins.model.* -import hudson.model.* -import hudson.tools.* - -def inst = Jenkins.getInstance() - -def desc = inst.getDescriptor("hudson.model.JDK") - -def versions = [ - "jdk8": "jdk-8u172-oth-JPR" -] -def installations = []; - -for (v in versions) { - def installer = new JDKInstaller(v.value, true) - def installerProps = new InstallSourceProperty([installer]) - def installation = new JDK(v.key, "", [installerProps]) - installations.push(installation) -} - -desc.setInstallations(installations.toArray(new JDK[0])) - -desc.save() 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() diff --git a/cns-libs/templates/jenkins/groovy/jenkins_set_no_of_executor.groovy.j2 b/cns-libs/templates/jenkins/groovy/jenkins_set_no_of_executor.groovy.j2 deleted file mode 100644 index c2b36eb7..00000000 --- a/cns-libs/templates/jenkins/groovy/jenkins_set_no_of_executor.groovy.j2 +++ /dev/null @@ -1,5 +0,0 @@ -import jenkins.model.* -def instance = Jenkins.getInstance() - -// No jobs on master -instance.setNumExecutors(10) diff --git a/cns-libs/templates/jenkins/groovy/jenkins_setup_jdk_user.groovy.j2 b/cns-libs/templates/jenkins/groovy/jenkins_setup_jdk_user.groovy.j2 deleted file mode 100644 index 905eb1cb..00000000 --- a/cns-libs/templates/jenkins/groovy/jenkins_setup_jdk_user.groovy.j2 +++ /dev/null @@ -1,6 +0,0 @@ -import jenkins.model.* -import hudson.model.* - -def inst = Jenkins.getInstance() -def desc = inst.getDescriptor("hudson.tools.JDKInstaller") -println desc.doPostCredential('vsmahajan007@gmail.com','Test#123') |