Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node {
- def nodeHome = tool name: 'node-6.3.1', type: 'jenkins.plugins.nodejs.tools.NodeJSInstallation'
- env.PATH = "${nodeHome}/bin:${env.PATH}"
- stage 'check environment'
- sh "node -v"
- sh "npm -v"
- stage 'build'
- sh "npm install"
- sh "gulp deploy"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement