jenkins build failing when capturing build time duration.

XMLWordPrintable

    • Type: Story
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: durable-task-plugin
    • None
    • Environment:
      Jenkins: Jenkins 2.319.3
      Durable Task Plugin: 496.va67c6f9eefa7

      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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: