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

Commit

Permalink
Can't run that node scrpit on a slave that already has an old node
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Sep 23, 2016
1 parent fd556c7 commit bc56681
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ node ('docker') {
//deleteDir()
checkout scm

def mvnHome = tool 'M3'

// Need to build the ATH out here so as to get node via
// the frontend maven plugin
sh "${mvnHome}/bin/mvn -B clean package -DskipTests"
// Now we can execute a node script to get the local host IP,
// which we need for running selenium in one docker container
// and the ATH itself in another.
sh "PATH=./node node .printip.js > hostip.txt"
// Get the local host IP, which we need for running selenium in
// one docker container and the ATH itself in another.
sh "hostname -i > hostip.txt"
def hostip = readFile 'hostip.txt'

echo "Host IP: [${hostip}]"
Expand Down

0 comments on commit bc56681

Please sign in to comment.