Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34119

Shell process killed (OOM), but pipeline continues anyway

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • durable-task-plugin
    • None
    • linux

      I have a jenkins pipeline, that invokes mvn with a 'sh mvn ....' invocation.

      Occasionally, the output shows the maven execution suddenly stop, and the pipeline continuing anyway (failing later because the maven part hadn't actually completed).

      I haven't been able to confirm, but my strong suspicion is mvn has been killed by the linux OOM killer.

      Digging in SO, when processes are killed in this way, the 'return code' alone isn't valid. (http://stackoverflow.com/questions/7180970/return-code-when-oom-killer-kills-a-process). I'm not sure the best way to figure this out, as of course bash is calling a script (mvn) which is in turn calling java (the actual maven process that'd be the one being killed).

          [JENKINS-34119] Shell process killed (OOM), but pipeline continues anyway

          magnayn created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170153 ] New: JNJira + In-Review [ 183789 ]

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

              Created:
              Updated: