jetty.project/Jenkinsfile

58 lines
1.1 KiB
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) {
2016-07-26 10:25:23 -04:00
sh "mvn clean install -Dtest=None"
2016-07-25 19:06:01 -04:00
}
2016-07-25 19:08:19 -04:00
stage 'Javadoc'
2016-07-25 19:06:01 -04:00
withEnv(mvnEnv) {
2016-07-26 10:25:23 -04:00
sh "mvn javadoc:javadoc"
2016-07-25 19:06:01 -04:00
}
2016-07-26 10:25:23 -04:00
/*
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-26 10:25:23 -04:00
*/
stage 'Test'
withEnv(mvnEnv) {
sh "mvn test -Dmaven.test.failure.ignore=true"
}
2016-07-25 19:06:01 -04:00
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) {
2016-07-26 10:25:23 -04:00
sh "mvn -Pcompact3 clean install"
2016-07-25 19:06:01 -04:00
}
}
2016-07-26 10:25:23 -04:00
stage 'Deploy SNAPSHOT'
/*
withEnv(mvnEnv) {
sh "mvn -Peclipse-release clean compile javadoc:jar source:jar gpg:sign deploy"
}
*/
2016-07-25 19:06:01 -04:00
}