Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to Work with Rundeck Webhooks?

Step 1 – Create a Project and Job with Node Steps

Step 2 – Go to Webhooks under project Menu

Step 3 – Create Webhook

Step 4 – Add Webhook Handlers Configurations

Step 5 – Validate the webhook url

Step 6 – Get a User API Token

Step 6 – Generate a CURL command and Run using Gitbash


ENCODED_API_TOKEN=$(echo -n "6BnnOqW7EicQix9lDAn9MceNtSIQ2LBN" | base64)

curl -X POST \
  -H "Authorization: Basic $ENCODED_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "webhook_id": "c6lMILXGYTvR6uaY59ZxhgsWybEfF5uF#hook1",
    "payload": {
      "key1": "value1",
      "key2": "value2"
    }
  }' \
  http://localhost:4440/api/45/webhook/c6lMILXGYTvR6uaY59ZxhgsWybEfF5uF#hook1

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x