build: conf jenkins 1.1

This commit is contained in:
idvylyuk 2024-11-27 11:27:14 +02:00
parent 863c08d5f9
commit e9d0e7e742

23
Jenkinsfile vendored
View file

@ -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"
}
} }
} }
} }