Jenkins api
py
Python-jenkins
ruby
jenkins ops
https://stackoverflow.com/questions/8072700/how-to-restart-jenkins-manually
To restart Jenkins manually, you can use either of the following commands (by entering their URL in a browser):
- 安全重启
(jenkins_url)/safeRestart - Allows all running jobs to complete. New jobs will remain in the queue to run after the restart is complete.
(jenkins_url)/restart - Forces a restart without waiting for builds to complete.