forked from tpapendieck/ciip-examples
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
620 B
31 lines
620 B
pipeline {
|
|
agent any
|
|
tools {
|
|
maven 'maven-3.6.0'
|
|
}
|
|
|
|
stages {
|
|
stage("SCM checkout"){
|
|
steps{
|
|
echo "BRANCH_NAME: ${env.BRANCH_NAME}"
|
|
checkout scm
|
|
}
|
|
}
|
|
stage("branch processing"){
|
|
steps{
|
|
echo "BRANCH_NAME: ${env.BRANCH_NAME}"
|
|
script {
|
|
if (env.BRANCH_NAME.startsWith("feature")) {
|
|
echo "rebase ${env.BRANCH_NAME} on develop"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage("maven build"){
|
|
steps{
|
|
sh '''mvn clean install'''
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|