Skip to content

Instantly share code, notes, and snippets.

@i386
Created April 6, 2017 03:12
Show Gist options
  • Save i386/5bacc640574c6d79bb72cd9a1181a505 to your computer and use it in GitHub Desktop.
Save i386/5bacc640574c6d79bb72cd9a1181a505 to your computer and use it in GitHub Desktop.
Jenkinsfile
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'build steps go here'
}
}
stage('Test') {
steps {
echo 'test steps go here'
}
}
stage('deploy') {
when { branch 'master' }
steps {
echo 'deploy steps go here'
}
}
stage('smoke tests') {
when { branch 'master' }
steps {
echo 'smoke test steps go here'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment