mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
build: conf jenkins 1.1
This commit is contained in:
parent
863c08d5f9
commit
e9d0e7e742
1 changed files with 13 additions and 10 deletions
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
|
@ -4,19 +4,22 @@ pipeline{
|
||||||
}
|
}
|
||||||
stages{
|
stages{
|
||||||
stage("A"){
|
stage("A"){
|
||||||
|
when {
|
||||||
|
branch 'main'
|
||||||
|
}
|
||||||
steps{
|
steps{
|
||||||
|
echo "MAIN BRANCH"
|
||||||
sh "printenv"
|
sh "printenv"
|
||||||
}
|
}
|
||||||
post{
|
}
|
||||||
always{
|
|
||||||
echo "========always========"
|
stage("B"){
|
||||||
}
|
when {
|
||||||
success{
|
changeRequest()
|
||||||
echo "========A executed successfully========"
|
}
|
||||||
}
|
steps {
|
||||||
failure{
|
echo "PR"
|
||||||
echo "========A execution failed========"
|
sh "printenv"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue