Skip to content

Instantly share code, notes, and snippets.

@bergpb
Last active August 27, 2019 01:33
Show Gist options
  • Select an option

  • Save bergpb/ace2af721f1be4ec898ce8d86b176c21 to your computer and use it in GitHub Desktop.

Select an option

Save bergpb/ace2af721f1be4ec898ce8d86b176c21 to your computer and use it in GitHub Desktop.
Simple Jenkins declarative example
pipeline {
agent any
stages {
stage('build') {
steps {
echo 'Running build ...'
}
}
stage('test') {
steps {
echo 'Run tests ...'
}
}
}
post {
always {
echo 'Run always'
}
success {
echo 'Run on success'
}
failure {
echo 'Run on failure'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment