User Tools

Site Tools


jenkins_pipeline

Jenkins Pipeline

Maven Build

node {
    stage("Clean") {
        cleanWs()
    }
    
    stage("Checkout") {
	sh "hg clone http://server/greenfield ."
    }

    stage("Build") {
        withMaven( maven: 'Maven 3' , jdk: 'Java8' ) {
          sh "mvn clean install"
        }
    }
}

jenkins_pipeline.txt · Last modified: 2017/10/12 08:56 by mihael