Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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!'
- }
- }
- }
Add Comment
Please, Sign In to add comment