Test of Jenkinsfile

This commit is contained in:
Joakim Erdfelt 2016-07-25 16:06:01 -07:00
parent e53ea55f48
commit a8bcba7ebd
1 changed files with 43 additions and 0 deletions

43
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,43 @@
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")
stage `Compile`
withEnv(mvnEnv) {
sh "mvn clean install -DskipTests"
}
stage `Javadoc`
withEnv(mvnEnv) {
sh "mvn javadoc:jar"
}
stage `Test`
withEnv(mvnEnv) {
sh "mvn test -Dmaven.test.failure.ignore=true"
}
stage `Documentation`
dir("jetty-documentation") {
withEnv(mvnEnv) {
sh "mvn clean install"
}
}
stage `Compact3`
dir("aggregates/jetty-all-compact3") {
withEnv(mvnEnv) {
sh "${mvnHome}/bin/mvn -Pcompact3 clean install"
}
}
}