build: conf jenkins 1.1

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

19
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========"
} }
success{
echo "========A executed successfully========" stage("B"){
} when {
failure{ changeRequest()
echo "========A execution failed========"
} }
steps {
echo "PR"
sh "printenv"
} }
} }
} }