If you run a flow

      node {
          sh 'rm -rf * .*'
      }
      

      this deletes the control directory for the shell step while it is running, and it becomes impossible to abort the build.

      I think this is because FileMonitoringController.exitStatus just checks if jenkins-result.txt exists yet. But if the whole control dir is missing, it should return -1 or similar.

      Similar effect if you botch the $PATH so that echo cannot be found. In that case the control dir is present, but pid is not, so the controller assumes the process is still starting! It should impose a time limit on the startup phase.

      Was ameliorated by improving DurableTaskExecution.stop to do a hard kill if you try to stop the build twice. This makes the similar JENKINS-25678 much less of a problem.

          [JENKINS-26105] Unkillable tasks

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-25678 [ JENKINS-25678 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-25550 [ JENKINS-25550 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-27105 [ JENKINS-27105 ]
          Vincent Latombe made changes -
          Link New: This issue is related to JENKINS-27152 [ JENKINS-27152 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-28400 [ JENKINS-28400 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160095 ] New: JNJira + In-Review [ 196315 ]
          Andrew Bayer made changes -
          Labels Original: robustness workflow New: pipeline robustness workflow
          Andrew Bayer made changes -
          Labels Original: pipeline robustness workflow New: pipeline robustness

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: