Skip to content

Commit

Permalink
Issue #7 - updated Jenkinsfile for syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Sep 29, 2016
1 parent fb38fab commit 2f6fbb9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ node {
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 'Checkout'

checkout scm

stage 'Build & Test'
stage ("Checkout") {
checkout scm
}

timeout(60) {
stage ("Build & Test") {
withCredentials([[$class: 'FileBinding', credentialsId: 'gcloud-service-account', variable: 'GCLOUDAUTH']]) {
sh "gcloud auth activate-service-account --key-file $GCLOUDAUTH"
sh "gcloud config set project ${env.PROJECTID}"
}
withEnv(mvnEnv) {
sh "mvn -B clean install -Dmaven.test.failure.ignore=true"
// Report failures in the jenkins UI
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
timeout(120) {
sh "mvn -B clean install -Dmaven.test.failure.ignore=true"
// Report failures in the jenkins UI
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
}
}
}

Expand Down

0 comments on commit 2f6fbb9

Please sign in to comment.