• Jenkins, How to Start, Stop or Restart your Instance


    https://support.cloudbees.com/hc/en-us/articles/216118748-How-to-Start-Stop-or-Restart-your-Instance-

    URL

    http://<jenkins.server>/restart
    http://<jenkins.server>/safeRestart
    http://<jenkins.server>/exit
    http://<jenkins.server>/safeExit
    http://<jenkins.server>/quietDown
    http://<jenkins.server>/cancelQuietDown
    

    Remote API

    URL can be invoked by a Remote API.

    Using wget:

    $ wget --user=<user> --password=<password> http://<jenkins.server>/restart
    $ wget --user=<user> --password=<password> http://<jenkins.server>/safeRestart
    $ wget --user=<user> --password=<password> http://<jenkins.server>/exit
    $ wget --user=<user> --password=<password> http://<jenkins.server>/safeExit
    $ wget --user=<user> --password=<password> http://<jenkins.server>/quietDown
    $ wget --user=<user> --password=<password> http://<jenkins.server>/cancelQuietDown
    

    Using cURL:

    $ curl -X POST -u <user>:<password> http://<jenkins.server>/restart
    $ curl -X POST -u <user>:<password> http://<jenkins.server>/safeRestart
    $ curl -X POST -u <user>:<password> http://<jenkins.server>/exit
    $ curl -X POST -u <user>:<password> http://<jenkins.server>/safeExit
    $ curl -X POST -u <user>:<password> http://<jenkins.server>/quietDown
    $ curl -X POST -u <user>:<password> http://<jenkins.server>/cancelQuietDown
    

    Jenkins CLI:

    $ java -jar jenkins-cli.jar -s http://<jenkins-server>/ restart
    $ java -jar jenkins-cli.jar -s http://<jenkins-server>/ safe-restart
    $ java -jar jenkins-cli.jar -s http://<jenkins-server>/ shutdown
    $ java -jar jenkins-cli.jar -s http://<jenkins-server>/ safe-shutdown
    $ java -jar jenkins-cli.jar -s http://<jenkins-server>/ quiet-down
    $ java -jar jenkins-cli.jar -s http://<jenkins-server>/ cancel-quiet-down
    
  • 相关阅读:
    summernote 上传图片到图片服务器的解决方案(springboot 成功)
    rabbitmq 命令行与控制台
    redis 集群
    rabbitmq快速安装(实测有效)(新版)
    设计模式-5适配器模式
    Nginx做缓存
    Redis的高可用
    正则表达式
    常用的实例场景(.net js jq)
    sentry的安装
  • 原文地址:https://www.cnblogs.com/johnsonshu/p/15776494.html
Copyright © 2020-2023  润新知