rundeck plugin use to call a jenkins job

202 views
Skip to first unread message

Martin Lourduswamy

unread,
Jun 24, 2021, 9:18:06 PM6/24/21
to rundeck-discuss
Hi,
to call a jenkins job
Rundeck url : http://localhost:4440

When i use webhook notification to call jenkins job it is saying 403 forbidden
I tried to put the username and password in the url also

http://user:pass@localhost:8080/view/JENKINS-RUNDECK--TESTING/job/call-jenkins-job-from-rundeck/build?token=RUNDECK

This did not work
Also tried to put

This also did not work,

Can anyone help me with this,

Thanks,
Regards,
Martin Lourduswamy

rac...@rundeck.com

unread,
Jun 25, 2021, 9:56:05 AM6/25/21
to rundeck-discuss

Hi Martin,

To execute a Jenkins job, use:

http://user:JENKINS_USER_TOKEN@localhost:8080/job/TestJob/build

Hope it helps!

Martin Lourduswamy

unread,
Jun 25, 2021, 3:23:56 PM6/25/21
to rundeck...@googlegroups.com
Hi,
It works, thanks,
But how to use a Rundeck trigger with  https://plugins.jenkins.io/rundeck/ plugin for tigger
Have you used it to trigger jobs, if so please do let me know,
Thanks,
Regards,
Martin Lourduswamy


--
You received this message because you are subscribed to a topic in the Google Groups "rundeck-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rundeck-discuss/dkyybiyuUBc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/05266108-814c-4411-88fb-ed5a57738862n%40googlegroups.com.

rac...@rundeck.com

unread,
Jun 25, 2021, 6:37:52 PM6/25/21
to rundeck-discuss

Hi Martin,

I tested the way of using the http://localhost:8080/plugin/rundeck/webhook URL on the Rundeck notification job but fails with an error 403 (as you say).

A good workaround is to set a webhook notification webhook with the following URL: http://user:JENKINS_USER_TOKEN@localhost:8080/job/TestJob/build

In that way, the Jenkins job is triggered from Rundeck's job notification.

Any update i'll post here.

Regards!

Reply all
Reply to author
Forward
0 new messages