jetty.project/Jenkinsfile

48 lines
940 B
Plaintext
Raw Normal View History

2016-07-25 19:06:01 -04:00
node {
// System Dependent Locations
def mvntool = tool name: 'maven3', type: 'hudson.tasks.Maven$MavenInstallation'
def jdktool = tool name: 'jdk8', type: 'hudson.model.JDK'
// Environment
List mvnEnv = ["PATH+MVN=${mvntool}/bin", "PATH+JDK=${jdktool}/bin", "JAVA_HOME=${jdktool}/", "MAVEN_HOME=${mvntool}"]
mvnEnv.add("MAVEN_OPTS=-Xms256m -Xmx1024m -Djava.awt.headless=true")
2016-07-25 19:10:46 -04:00
stage 'Checkout'
checkout scm
2016-07-25 19:08:19 -04:00
stage 'Compile'
2016-07-25 19:06:01 -04:00
withEnv(mvnEnv) {
sh "mvn clean install -DskipTests"
}
2016-07-25 19:08:19 -04:00
stage 'Javadoc'
2016-07-25 19:06:01 -04:00
withEnv(mvnEnv) {
sh "mvn javadoc:jar"
}
2016-07-25 19:08:19 -04:00
stage 'Test'
2016-07-25 19:06:01 -04:00
withEnv(mvnEnv) {
sh "mvn test -Dmaven.test.failure.ignore=true"
}
2016-07-25 19:08:19 -04:00
stage 'Documentation'
2016-07-25 19:06:01 -04:00
dir("jetty-documentation") {
withEnv(mvnEnv) {
sh "mvn clean install"
}
}
2016-07-25 19:08:19 -04:00
stage 'Compact3'
2016-07-25 19:06:01 -04:00
dir("aggregates/jetty-all-compact3") {
withEnv(mvnEnv) {
sh "${mvnHome}/bin/mvn -Pcompact3 clean install"
}
}
}