How to disable a Jenkins job via curl?

前端 未结 5 1785
感动是毒
感动是毒 2020-12-10 02:24

I want to disable a Jenkins job by sending a post curl request to Jenkins.

I\'ve tried doing that using:

  1. curl -X POST http://:8080
5条回答
  •  情书的邮戳
    2020-12-10 03:07

    The below is working for me

    curl -X POST http:///job/jobname/disable
    

    Make sure the user access to do that.

提交回复
热议问题