You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, we run a number of post-build publishers. As only one org.jenkinsci.plugins.postbuildscript.PostBuildScript can be run as a publisher, we end up with a block of buildSteps of type hudson.tasks.Shell. This means that if we have a post-build flow like -- generate artifacts, retrieve artifacts, fetch systemd journals, deprovision cloud resources -- and one of the first hudson.tasks.Shell fails, the rest will not run. Although the larger org.jenkinsci.plugins.postbuildscript.PostBuildScript is set to run regardless of whether the job failed or not, the linear flow of hudson.tasks.Shell will exit early on any individual failure. We can try to address this by adding || true to our actions in these steps but in reality we just need a way to parameterize a named_shell_action so we don't always add set -o errexit. This way, failures will be silently ignored and all post-build tasks will run.
Today, we run a number of post-build
publishers
. As only oneorg.jenkinsci.plugins.postbuildscript.PostBuildScript
can be run as apublisher
, we end up with a block ofbuildSteps
of typehudson.tasks.Shell
. This means that if we have a post-build flow like -- generate artifacts, retrieve artifacts, fetchsystemd
journals, deprovision cloud resources -- and one of the firsthudson.tasks.Shell
fails, the rest will not run. Although the largerorg.jenkinsci.plugins.postbuildscript.PostBuildScript
is set to run regardless of whether the job failed or not, the linear flow ofhudson.tasks.Shell
will exit early on any individual failure. We can try to address this by adding|| true
to our actions in these steps but in reality we just need a way to parameterize anamed_shell_action
so we don't always addset -o errexit
. This way, failures will be silently ignored and all post-build tasks will run./cc @soltysh
The text was updated successfully, but these errors were encountered: