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

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

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: