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

JacocoPublisher serializes concurrent builds waiting for checkpoint



    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: jacoco-plugin
    • Labels:
    • Environment:
      Jenkins 1.576
      JaCoCo 1.0.16
    • Similar Issues:



      When running concurrent builds of a job, each build blocks with the message "Record JaCoCo coverage report is waiting for a checkpoint" until all the builds preceding it have completed. In other words, if an older build takes a long time to finish, a newer build will hang with the above message until the older build has completed.


      See JENKINS-9913 for a detailed description of the cause. Earlier versions of Jenkins could not run multiple builds of the same job in parallel. As a result, many plugins written for earlier versions of Jenkins always assumed that the outcome of the previous build is completely available, which is no longer true when we do concurrent builds. The BuildStep.getRequiredMonitorService() method was introduced for preserving compatibility with plugins written for earlier versions of Jenkins. BuildStepMonitor.BUILD means that the BuildStep is only executed after the previous build is fully completed (thus fully restoring the earlier semantics of one build at a time), while BuildStepMonitor.NONE (the recommended value for newer plugins) performs no external synchronization on the build step.


      In order to resolve this issue, we need to switch from BuildStepMonitor.BUILD to BuildStepMonitor.NONE. This necessitates auditing the code for the assumption that all previous builds have completed and making the necessary adjustments.


          Issue Links


            basil Basil Crow created issue -
            basil Basil Crow made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-9913 [ JENKINS-9913 ]
            basil Basil Crow made changes -
            Link This issue is related to JENKINS-16376 [ JENKINS-16376 ]
            basil Basil Crow made changes -
            Link This issue is related to JENKINS-21246 [ JENKINS-21246 ]
            basil Basil Crow made changes -
            Link This issue is related to JENKINS-10234 [ JENKINS-10234 ]
            centic centic made changes -
            Assignee Ognjen Bubalo [ ognjenb ] centic [ centic ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            mheinzerling Martin Heinzerling made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 157431 ] JNJira + In-Review [ 208002 ]


              centic centic
              basil Basil Crow
              0 Vote for this issue
              3 Start watching this issue