This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      In my pipelines I'm using parallel steps, for which I would like to know how long each step lasted.

      With serial steps I can cut in stages, that's fine.

      With parallel steps it's impossible.

      Having access to the whole build information is possible using currentBuild object

      https://github.com/jenkinsci/workflow-support-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.java

      It would be very useful to access the same way to current step, and then simply println the required information. (duration, status, whatever).

      For now, the only way to know what parallel step was the slower is to brows through each console output, with the step wrapped in timestamper. ... not something acceptable.

      I could also try to compute the duration myself (using java Date, and compute difference between start and end) but there are two major flaws here :

      • would require 'script approval' on any master I work on (and yeah, I work on a lot)
      • completely blurs the functional code of the pipeline with useless code

            Assignee:
            Jesse Glick
            Reporter:
            squalou jenkins
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: