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

Duration time is incorrect in a parallel pipeline step.

      I got a negative number from pipeline workflow api, that is a duration time.

          [JENKINS-49763] Duration time is incorrect in a parallel pipeline step.

          Rick created issue -
          Rick made changes -
          Priority Original: Minor [ 4 ] New: Blocker [ 1 ]

          Oleg Nenashev added a comment - - edited

          Could you please attach a screenshot so that we could triage?

          Oleg Nenashev added a comment - - edited Could you please attach a screenshot so that we could triage?

          Rick added a comment - - edited

          Here is api output text.

          {"_links":{"self":{"href":"/jenkins/job/common/lastBuild/wfapi/describe"}},"id":"201","name":"#201","status":"IN_PROGRESS","startTimeMillis":1519782004606,"endTimeMillis":1519782006142,"durationMillis":1536,"queueDurationMillis":5,"pauseDurationMillis":0,"stages":[{"_links":{"self":{"href":"/jenkins/job/common/lastBuild/execution/node/12/wfapi/describe"}},"id":"12","name":"2","execNode":"","status":"SUCCESS","startTimeMillis":1519782004715,"durationMillis":-13,"pauseDurationMillis":-13},{"_links":{"self":{"href":"/jenkins/job/common/lastBuild/execution/node/10/wfapi/describe"}},"id":"10","name":"1","execNode":"","status":"IN_PROGRESS","startTimeMillis":1519782004702,"durationMillis":1439,"pauseDurationMillis":0}]}
          

          RestApi url is : http://localhost:8080/jenkins/job/common/lastBuild/wfapi/describe

          Here is pipeline script:

          node {
              parallel 'test': {
                  stage('1') {
                      sleep 60
                  }
              }, 'deply': {
                  stage('2') {
                      sleep 60
                  }
              }
          }
          

          Rick added a comment - - edited Here is api output text. { "_links" :{ "self" :{ "href" : "/jenkins/job/common/lastBuild/wfapi/describe" }}, "id" : "201" , "name" : "#201" , "status" : "IN_PROGRESS" , "startTimeMillis" :1519782004606, "endTimeMillis" :1519782006142, "durationMillis" :1536, "queueDurationMillis" :5, "pauseDurationMillis" :0, "stages" :[{ "_links" :{ "self" :{ "href" : "/jenkins/job/common/lastBuild/execution/node/12/wfapi/describe" }}, "id" : "12" , "name" : "2" , "execNode" : ""," status ":" SUCCESS "," startTimeMillis ":1519782004715," durationMillis ":-13," pauseDurationMillis ":-13},{" _links ":{" self ":{" href ":" /jenkins/job/common/lastBuild/execution/node/10/wfapi/describe "}}," id ":" 10 "," name ":" 1 "," execNode ":" "," status ":" IN_PROGRESS "," startTimeMillis ":1519782004702," durationMillis ":1439," pauseDurationMillis":0}]} RestApi url is : http://localhost:8080/jenkins/job/common/lastBuild/wfapi/describe Here is pipeline script: node { parallel 'test' : { stage( '1' ) { sleep 60 } }, 'deply' : { stage( '2' ) { sleep 60 } } }

          Rick added a comment -

          So, you can see durationMillis is negative. oleg_nenashev

          Rick added a comment - So, you can see durationMillis is negative. oleg_nenashev
          Rick made changes -
          Summary Original: During time is incorrect in a parallel pipeline step. New: Duration time is incorrect in a parallel pipeline step.
          Rick made changes -
          Description Original: I got a negative number from pipeline workflow api, that is a during time. New: I got a negative number from pipeline workflow api, that is a duration time.
          Andrew Bayer made changes -
          Component/s New: pipeline-graph-analysis-plugin [ 21693 ]
          Component/s Original: pipeline [ 21692 ]
          Ben Walding made changes -
          Attachment New: Screen Shot 2019-05-14 at 1.37.24 pm.png [ 47114 ]
          Ben Walding made changes -
          Attachment New: screenshot-1.png [ 47115 ]

            Unassigned Unassigned
            surenpi Rick
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: