Reputation: 859
I would want to launch a build of a Jenkins build job, without using plugins, but using a python script. Is there a function to do that ?
Example : I've a "job1" and a "job2". In a script of job1, I want to write something like "start(job2)"...
Any suggestion ?
Upvotes: 0
Views: 533
Reputation: 859
I've found a solution : I needed to add a token to my job, and when I call my job, I use this url : "https://jenkins-server.srv/job/my-job/build?delay=0sec&token=my-token"
I've chosen the token here : (sorry for the french version)
Upvotes: 1
Reputation: 21130
Not sure why you don't want to use a plugin, which would make job configuration much more simple, but you could use the Remote Access API to achieve this.
Upvotes: 2