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

Commit

Permalink
printip
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Sep 23, 2016
1 parent e64e8ee commit bc9c2b3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .printip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var netaddr = require('network-address');
console.log(netaddr());
49 changes: 30 additions & 19 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
#!groovy

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

try {
// Build blueocean and the ATH
stage 'build'
dir('blueocean-plugin') {
git url: 'https://github.com/jenkinsci/blueocean-plugin.git'
sh "mvn clean install -DskipTests"
}
sh "mvn clean install -DskipTests"
sh "echo `PATH=./node/:./node/npm/:$PATH node .printip.js`"

// Run the ATH
stage 'run'
sh "./run.sh -a=./blueocean-plugin/blueocean/"
} catch (err) {
currentBuild.result = "FAILURE"
} finally {
//deleteDir()
}
// def athImg = docker.image('blueocean-ath-builder')
// athImg.inside("--expose=1024-65535") {
// 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 bc9c2b3

Please sign in to comment.