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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins ver. 1.565

      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...

          [JENKINS-24914] Jenkins.doQuietDown(boolean block, int timeout) blocks while jobs running (incorrect doc)

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

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

              Created:
              Updated:
              Resolved: