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{
stage("A"){
when {
branch 'main'
}
steps{
echo "MAIN BRANCH"
sh "printenv"
}
post{
always{
echo "========always========"
}
success{
echo "========A executed successfully========"
}
failure{
echo "========A execution failed========"
stage("B"){
when {
changeRequest()
}
steps {
echo "PR"
sh "printenv"
}
}
}