i need lauch a job in a secuered jenkins from remote, i have tried with api token, instead launching job it show a jenkins login page. The URL that i use is:
http://user:api_token@server_jenkins:8080/job/name_build/build?delay=0sec
Thanks
i need lauch a job in a secuered jenkins from remote, i have tried with api token, instead launching job it show a jenkins login page. The URL that i use is:
http://user:api_token@server_jenkins:8080/job/name_build/build?delay=0sec
Thanks
I've found the solution: need to able
Trigger builds remotely (e.g., from scripts)
to project page and insert any token. The request URL is:you can do this using curl command as well. 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
results would be
for more information how to trigger jenkins job via curl command remotely