Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelneale/df8cd9e22ccf9c1c42de6c78e0e98e09 to your computer and use it in GitHub Desktop.
Save michaelneale/df8cd9e22ccf9c1c42de6c78e0e98e09 to your computer and use it in GitHub Desktop.
node {
stage "Prepare environment"
checkout scm
def environment = docker.build 'cloudbees-node'
environment.inside {
stage "Checkout and build"
sh "npm install"
stage "Install gulp"
sh 'npm install gulp-cli'
stage 'Test'
sh './node_modules/.bin/gulp'
}
stage "Cleanup"
deleteDir()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment