Skip to content

Instantly share code, notes, and snippets.

@O5ten
Last active February 15, 2019 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save O5ten/0eb32e118b0bd178ce784dbe7073214d to your computer and use it in GitHub Desktop.
Save O5ten/0eb32e118b0bd178ce784dbe7073214d to your computer and use it in GitHub Desktop.
Jenkins pipeline
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 'lead.developer@example.com'
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