pipeline DSL: timeout() does not work if withEnv() is enclosed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • None
    • Environment:
      Jenkins 1.651.1, up-to-date pipeline and workflow plugins (list attached), IBM JRE 1.7.0, Linux

      Pipeline/ workflow DSL: timeout() does not work as expected when a withEnv() is introduced inside the (same) timeout + node blocks and over the (same) shell command.
      Specifically, without the withEnv block, the timeout actually interrupts the shell command.
      With the withEnv block, the timeout does not interrupt the shell command; yet, the build still ends reporting that it was interrupted/ aborted.

            Assignee:
            Jesse Glick
            Reporter:
            Tony Wallace
            Votes:
            9 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: