Skip to content

Commit

Permalink
Simpler every day
Browse files Browse the repository at this point in the history
  • Loading branch information
victorb committed Dec 7, 2016
1 parent 0297c1d commit 829a063
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
node {
def nodeHome = tool name: 'NodeJS-6', type: 'jenkins.plugins.nodejs.tools.NodeJSInstallation'
withEnv(["PATH=${env.PATH}:${nodeHome}/bin"]) {
stage('Checkout') {
checkout scm
}
stage('Build') {
sh "env | sort"
sh "${nodeHome}/bin/npm install"
}
stage('Test') {
sh "${nodeHome}/bin/npm run test:node"
}
}
}
nodejs6 {}

0 comments on commit 829a063

Please sign in to comment.