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

Commit

Permalink
Build BO and ATH on the executor
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Sep 23, 2016
1 parent 776ca3f commit 3344910
Showing 1 changed file with 43 additions and 28 deletions.
71 changes: 43 additions & 28 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
#!groovy

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

def athImg = docker.image('blueocean-ath-builder')
athImg.inside {
withEnv(['GIT_COMMITTER_EMAIL=me@hatescake.com','GIT_COMMITTER_NAME=Hates','GIT_AUTHOR_NAME=Cake','GIT_AUTHOR_EMAIL=hates@cake.com']) {
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"

// Run the ATH
stage 'run'
sh "./run.sh -a=./blueocean-plugin/blueocean/"
} catch(err) {
currentBuild.result = "FAILURE"
} finally {
//deleteDir()
}
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"

// Run the ATH
stage 'run'
// sh "./run.sh -a=./blueocean-plugin/blueocean/"

// def athImg = docker.image('blueocean-ath-builder')
// athImg.inside {
// withEnv(['GIT_COMMITTER_EMAIL=me@hatescake.com','GIT_COMMITTER_NAME=Hates','GIT_AUTHOR_NAME=Cake','GIT_AUTHOR_EMAIL=hates@cake.com']) {
// 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"
//
// // Run the ATH
// stage 'run'
// sh "./run.sh -a=./blueocean-plugin/blueocean/"
// } catch(err) {
// currentBuild.result = "FAILURE"
// } finally {
// //deleteDir()
// }
// }
// }
}

0 comments on commit 3344910

Please sign in to comment.