Differences

This shows you the differences between two versions of the page.

Link to this comparison view

jenkins_pipeline [2017/10/12 10:56]
jenkins_pipeline [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Jenkins Pipeline ======
 +
 +===== Maven Build =====
 +
 +<sxh groovy>
 +node {
 +    stage("Clean") {
 +        cleanWs()
 +    }
 +    
 +    stage("Checkout") {
 + sh "hg clone http://server/greenfield ."
 +    }
 +
 +    stage("Build") {
 +        withMaven( maven: 'Maven 3' , jdk: 'Java8' ) {
 +          sh "mvn clean install"
 +        }
 +    }
 +}
 +</sxh>
 +