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

Jenkins.doQuietDown(boolean block, int timeout) blocks while jobs running (incorrect doc)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.565
    • Similar Issues:

      Description

      Jenkins.doQuietDown(boolean block, int timeout) blocks as long as there are jobs running. This is not what it says in the documentation and a less useful behavior in my point of view.

      boolean block
      usage="Block until the system really quiets down and no builds are running"
      int timeout
      usage="If non-zero, only block up to the specified number of milliseconds"

      I suggest the implementation should do what it says in the doc, i.e. only wait timeout, then return even though jobs are still running.

      This error should be easily exposed by a unit test...

        Attachments

          Issue Links

            Activity

            marcus_phi Marcus Philip created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Assignee Daniel Beck [ danielbeck ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            danielbeck Daniel Beck made changes -
            Remote Link This issue links to "PR 1421 (Web Link)" [ 11802 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 158810 ] JNJira + In-Review [ 195890 ]

              People

              Assignee:
              danielbeck Daniel Beck
              Reporter:
              marcus_phi Marcus Philip
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: