-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
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)
Originally reported by jdh, imported from: jenkins-cli quiet-down -block does not block with pipeline jobs
- status: Open
- priority: Minor
- component(s): cli
- label(s): documentation, pipeline
- resolution: Unresolved
- votes: 1
- watchers: 4
- imported: 2025-11-24
Raw content of original issue
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 runningTo:
-block : Block until the system really quiets down and no builds are running (except pipeline jobs)
environment
Jenkins version 2.32.1<br/>
Checked problem can be reproduced with git ver:d111e2ac1658c8fa5fb768e7d1233613b4b9992d<br/>
Running on windows 7 as service <br/>
Recommended plugins installed<br/>
Chrome 55<br/>
Oracle Java 1.8.0_111 64 bit<br/>