Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Back to not building in a container
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Sep 23, 2016
1 parent 49c21be commit 87287a6
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
#!groovy

node {
stage 'init'
//deleteDir()
checkout scm
stage 'init'
//deleteDir()
checkout scm

def athImg = docker.image('blueocean-ath-builder')
athImg.inside("--expose=7000-8000") {
withEnv(['GIT_COMMITTER_EMAIL=me@hatescake.com','GIT_COMMITTER_NAME=Hates','GIT_AUTHOR_NAME=Cake','GIT_AUTHOR_EMAIL=hates@cake.com']) {
try {
try {
// Build blueocean and the ATH
stage 'build'
// dir('blueocean-plugin') {
// git url: 'https://github.com/jenkinsci/blueocean-plugin.git'
// //
// // Must cd into blueocean-plugin before running build
// // see https://issues.jenkins-ci.org/browse/JENKINS-33510
// // TODO: figure out why rest-impl tests fail and then remove -DskipTests
// sh "cd blueocean-plugin && mvn clean install -DskipTests"
// }
// sh "mvn clean install -DskipTests"
dir('blueocean-plugin') {
git url: 'https://github.com/jenkinsci/blueocean-plugin.git'
sh "mvn clean install -DskipTests"
}
sh "mvn clean install -DskipTests"

// Run the ATH
stage 'run'
//sh "./run.sh -a=./blueocean-plugin/blueocean/"
} catch(err) {
} catch (err) {
currentBuild.result = "FAILURE"
} finally {
} finally {
//deleteDir()
}
}
}
}

0 comments on commit 87287a6

Please sign in to comment.