Advertisement
Guest User

CI pipeline

a guest
Apr 30th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.39 KB | None | 0 0
  1. pipeline {
  2.     agent any
  3.     stages {
  4.        
  5.         stage("Build") {
  6.              steps {
  7.                 sh 'mvn compile'
  8.             }
  9.         }
  10.  
  11.         stage("Tests") {
  12.              steps {
  13.                 sh 'mvn test'
  14.             }
  15.         }
  16.  
  17.         stage("Deploy") {
  18.              steps {
  19.                 sh 'mvn install -DskipTests'
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement