Jenkins
Aus Alexander's Wiki
Version vom 29. September 2022, 14:03 Uhr von Admin (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Pipeline == === Git-Checkout === === Post-Declaration === <syntaxhighlight lang="groovy"> post { always { echo "This block always…“)
Pipeline
Git-Checkout
Post-Declaration
post {
always {
echo "This block always runs."
}
changed {
echo "This block runs when the current status is different than the previous one."
}
fixed {
echo "This block runs when the current status is success and the previous one was failed or unstable."
}
regression {
echo "This block runs when the current status is anything except success but the previous one was successful."
}
unstable {
echo "This block runs if the current status is marked unstable."
}
aborted {
echo "This block runs when the build process is aborted."
}
failure {
echo "This block runs when the build is failed."
}
success {
echo "This block runs when the build is succeeded."
}
unsuccessful {
echo "This block runs when the current status is anything except success."
}
cleanup {
echo "This block always runs after other conditions are evaluated."
}
}