jenkins build failing when capturing build time duration.

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

XMLWordPrintable

      Hi,

      I am trying to capture the build time for my jobs 

      env.BUILD_DURATION="${currentBuild.durationString.replace(' and counting', '')}" to post in slack notification. Often I am getting following error message.
      hudson.AbortException: script returned exit code 22
      at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.handleExit(DurableTaskStep.java:664)
      at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.check(DurableTaskStep.java:610)
      at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.run(DurableTaskStep.java:554)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:750)
       

            Assignee:
            Unassigned
            Reporter:
            Harasai Kumar
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: