Last active
February 15, 2019 21:15
-
-
Save O5ten/0eb32e118b0bd178ce784dbe7073214d to your computer and use it in GitHub Desktop.
Jenkins pipeline
This file contains 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 'linux' | |
stages { | |
stage('Build ') { | |
steps { | |
sh 'mvn compile' | |
} | |
} | |
stage('Run Tests') { | |
steps { | |
sh 'mvn test -Dtest' | |
} | |
} | |
stage('Publish Artifacts') { | |
steps { | |
sh 'mvn deploy' | |
} | |
} | |
stage('Notify'){ | |
email '[email protected]' | |
slack webhookId: 'webhookId', message: 'The thing was deployed!' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment