Status: Open (View Workflow)
Environment:Jenkins: 2.46.3 (LTS), Pipeline 2.5, Git 3.3.0
Java: OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
Host: Ubuntu 16.04.2 LTS
I have a Pipeline job which invokes other pipeline jobs (in parallel) with failFast enabled. Generally, failFast works as expected, however I constantly see an issue where a handful of the downstream builds fail to abort properly.
In the cases which fail to abort properly, they are always in the very early stages of execution, and almost always while performing a checkout() operation (with GitSCM as the underlying class instantiated).
Pipeline job definition for the downstream jobs (which fail to be aborted) looks like:
Console output from such a case does indeed show that the calling pipeline was cancelled mid-checkout:
However, the 'sh' step gets executed (in full! even though the calling pipeline was cancelled mid-checkout), and the build (eventually) finishes (with the correct Result – ABORTED):