Last active
August 27, 2019 01:33
-
-
Save bergpb/ace2af721f1be4ec898ce8d86b176c21 to your computer and use it in GitHub Desktop.
Simple Jenkins declarative example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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