Skip to content

Instantly share code, notes, and snippets.

@mosluce
Created July 5, 2017 09:42
Show Gist options
  • Select an option

  • Save mosluce/623aea63876766b620253ff0a55e8adb to your computer and use it in GitHub Desktop.

Select an option

Save mosluce/623aea63876766b620253ff0a55e8adb to your computer and use it in GitHub Desktop.
#
pipeline {
agent {
docker {
image 'node:8.1.0'
args '-u root'
}
}
stages {
stage('Preview') {
steps {
echo 'previewing...'
sh 'pwd'
sh 'ls -al'
}
}
stage('Build') {
steps {
echo 'building...'
sh 'npm install -g yarn'
sh 'yarn install'
}
}
stage('Test') {
steps {
echo 'testing...'
sh 'npm test'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment