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

Sending mail blocks on prior build

XMLWordPrintable

      A parallel-capable job was observed to be stuck in a later build just because an earlier build was still running:

      "Executor #1 for ... : executing ... #6268 : waiting for Check point mail sent on ... #6266" ...
         java.lang.Thread.State: WAITING (on object monitor)
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:503)
      	at hudson.model.Run$RunExecution$CheckpointSet.waitForCheckPoint(Run.java:1453)
      	- locked <0x...> (a hudson.model.Run$RunExecution$CheckpointSet)
      	at hudson.model.Run.waitForCheckpoint(Run.java:1411)
      	at hudson.model.CheckPoint.block(CheckPoint.java:144)
      	at hudson.tasks.MailSender.findPreviousBuildResult(MailSender.java:144)
      	at hudson.tasks.MailSender.getMail(MailSender.java:166)
      	at hudson.tasks.MailSender.execute(MailSender.java:100)
      	at hudson.tasks.Mailer.perform(Mailer.java:117)
      

      As in JENKINS-16376, this is senseless. If the earlier build is not yet done, it is better to just not report any state transition.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: