Guest User

Untitled

a guest
Feb 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. pipeline {
  2. agent 'linux'
  3. stages {
  4. stage('Build ') {
  5. steps {
  6. sh 'mvn compile'
  7. }
  8. }
  9. stage('Run Tests') {
  10. steps {
  11. sh 'mvn test -Dtest'
  12. }
  13. }
  14. stage('Publish Artifacts') {
  15. steps {
  16. sh 'mvn deploy'
  17. }
  18. }
  19. stage('Notify'){
  20. email 'lead.developer@example.com'
  21. slack webhookId: 'webhookId', message: 'The thing was deployed!'
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment