public class ToolInstallations extends Object
| Modifier and Type | Method and Description |
|---|---|
static hudson.tasks.Ant.AntInstallation |
configureDefaultAnt(org.junit.rules.TemporaryFolder tmp)
Extracts Ant and configures it.
|
static hudson.plugins.gradle.GradleInstallation |
configureDefaultGradle(org.junit.rules.TemporaryFolder tmp)
Extracts Gradle and configures it.
|
static hudson.tasks.Maven.MavenInstallation |
configureDefaultMaven()
Returns the older default Maven, while still allowing specification of
other bundled Mavens.
|
static hudson.tasks.Maven.MavenInstallation |
configureDefaultMaven(String mavenVersion,
int mavenReqVersion)
Locates Maven and configure that as the only Maven in the system.
|
static hudson.tasks.Maven.MavenInstallation |
configureMaven3() |
static hudson.tasks.Maven.MavenInstallation |
configureMaven35()
Declare "Maven 3.5.0" as the "default" Maven installation in Jenkins and as the Maven installation named "apache-maven-3.5.0".
|
public static hudson.tasks.Maven.MavenInstallation configureDefaultMaven()
throws Exception
Exceptionpublic static hudson.tasks.Maven.MavenInstallation configureMaven3()
throws Exception
Exceptionpublic static hudson.tasks.Maven.MavenInstallation configureMaven35()
throws Exception
Maven.MavenInstallation share the same Maven binaries.Maven.MavenInstallationExceptionpublic static hudson.tasks.Maven.MavenInstallation configureDefaultMaven(String mavenVersion, int mavenReqVersion) throws Exception
mavenVersion - desired maven version (e.g. apache-maven-3.5.0)mavenReqVersion - minimum maven version defined using the constants Maven.MavenInstallation#MAVEN_20,
Maven.MavenInstallation#MAVEN_21 and Maven.MavenInstallation#MAVEN_30Exceptionpublic static hudson.tasks.Ant.AntInstallation configureDefaultAnt(org.junit.rules.TemporaryFolder tmp)
throws Exception
ExceptionCopyright © 2004-2017. All Rights Reserved.