Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cbilliau/f704deae421bf06835f0052f81af6546 to your computer and use it in GitHub Desktop.
Save cbilliau/f704deae421bf06835f0052f81af6546 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