Skip to content

Instantly share code, notes, and snippets.

@O5ten O5ten/Jenkinsfile
Last active Feb 15, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.