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

Users should be able to custom configure the timeout on pipeline build wrappers/steps

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As part of JENKINS-32986 pipeline cps plugin has introduced a 5 min timeout for each instruction on the script.
      Custom scripts that are implemented as jenkins.tasks.BuildWrapper are now subject to this limitation.
      As BuildWrappers are a very useful and common extension point it seems to me that Jenkins administrators should be able to increase this hard coded timeout by passing a configuration (maybe a -D vm param)
      OR (even better) developers that are writing Build wrappers can provide something like a max timeout hint to cps treat it properly (maybe by implementing an interface or an annotation).

      This change on behavior from 2.4 to 2.5 pipeline jenkins broke our plugin on some use cases.

      As DurableSteps (that are not subject to this limitation) are "steps" not "wrappers" I cannot see how to change our implementation to some structure that acts as a wrapper without touch the 5 min limitation.

      Relevant commit
      https://github.com/jenkinsci/workflow-cps-plugin/commit/c0deed0a3b546ebcb59ea25681ed3ac8b13fe6bb

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              lucasam Lucas Machado
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: