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

jenkins-cli quiet-down -block does not block with pipeline jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cli
    • Jenkins version 2.32.1
      Checked problem can be reproduced with git ver:d111e2ac1658c8fa5fb768e7d1233613b4b9992d
      Running on windows 7 as service
      Recommended plugins installed
      Chrome 55
      Oracle Java 1.8.0_111 64 bit

      Running command: java -jar jenkins-cli.jar -s IP quiet-down -block
      Does not seem to work for pipeline jobs.

      With pipeline job running the command returns straight away. The pipeline job then continues until the end of the stage then stops. I expected that the command should not return until all jobs in the queue are finished or reach the end of a stage and are paused.

      With freestyle job running the the command waits for the freestyle job to finish then returns.

      In both cases the command does stop new jobs from been started and shows a red banner with jenkins going for shutdown message on the web interface.

      Running: java -jar jenkins-cli.jar -s IP cancel-quiet-down
      Removes the red banner from the web UI but sometime the job in the queue does not restart and can't be canceled. I have to restart Jenkins. (Maybe this is a separate issue)


      Maybe text for jenkins-cli help quiet-down block option should be changed as this is what lead me to think the behavior was a bug From:

      -block : Block until the system really quiets down and no builds are
      running

      To:

      -block : Block until the system really quiets down and no builds are
      running (except pipeline jobs)

            Unassigned Unassigned
            jdh Joe Hartley
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: