Skip to content

Commit

Permalink
break pipeline into nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
c835722 committed Sep 22, 2016
1 parent c45a90a commit 25d0948
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env groovy​

def nodeHome = tool name: 'nodejs-latest', type: 'jenkins.plugins.nodejs.tools.NodeJSInstallation'
env.PATH = "${nodeHome}/bin:${env.PATH}"

stage "environment"
node {
stage "environment"
def nodeHome = tool name: 'nodejs-latest', type: 'jenkins.plugins.nodejs.tools.NodeJSInstallation'
env.PATH = "${nodeHome}/bin:${env.PATH}"
sh "uname -a"
sh "node -v"
sh "npm -v"
Expand Down

0 comments on commit 25d0948

Please sign in to comment.