Start Jenkins build using batch script

后端 未结 6 1859
挽巷
挽巷 2020-12-15 23:43

I am working with a Jenkins build server to run synthesis/simulation for FPGAs. Right now I have nightly builds and can start the build manually in Jenkins browser interface

6条回答
  •  囚心锁ツ
    2020-12-16 00:02

    you can do this using curl command with -I Option. create an API token for the jenkins Job and use it to trigger the job. you can use jenkins user password for this as well.

    command would be

    curl -I -u auto: http:///job/test/build?token=wefiytgwiefiweihfqweiodf
    

    results would be

    for more information https://serverfault.com/questions/888176/how-to-trigger-jenkins-job-via-curl-command-remotely/888248#888248

提交回复
热议问题