Using Pipeline in Jenkins

Technical staffs in English
1 min readMay 17, 2018

--

select Pipeline in new item

This is pipeline text

node {
def mvnHome
stage('Preparation') { // for display purposes
git 'https://github.com/horitaku1124/smallpt4j.git'
}
stage('Build') {
// Run the maven build
if (isUnix()) {
sh "mvn install"
} else {
bat(/"${mvnHome}\bin\mvn" install/)
}
}
stage('Check') {
sh "lizard -l java -C 100"
}
}

first stage is get source code.

second stage is how to build

third stage is static analyze stage. lizard is a Cyclomatic Complexity tools.

lastly install blue ocean plugin. I got like thie

--

--