In Flashduty On-call
- In the Flashduty console, go to Integration Center → Change Events
- Select Rundeck and enter an integration name
- To assign changes to specific channels, add rules under the integration’s Routes that match labels such as
projectorjob - Click Save and copy the generated Push URL
Configure Rundeck
1
Open the job's notification settings
Open the job to sync, click Edit, and switch to the Notifications tab.
2
Add a webhook notification
Add a notification of type Send Webhook for each of On Start, On Success, On Failure, and On Retryable Failure:
- URL(s): the full Push URL of the Flashduty integration
- Payload Format: select
JSON. Rundeck defaults to XML, which Flashduty does not accept - Method: select
POST
notification section of the job definition (YAML or XML) and be applied with rd jobs load or a project import.3
Run the job
Save and run the job once; the change appears in the Flashduty change list. The webhook notification has no test button. When Rundeck fails to reach Flashduty, it logs
Notification failed in the Rundeck server log only; a delivery that Flashduty rejects is not shown on the job page.What one change is
Each job execution is one change. The change key (change_key) is Rundeck’s execution id, for example
4711.
- The start and end notifications of one execution update the same change
- Two executions of the same job are two changes
- When a failed job is retried automatically, each retry is a new execution and therefore a new change
- An execution id is unique within one Rundeck server. Create a separate integration for each Rundeck server; otherwise equal execution ids from different servers merge into one change
Status mapping
Done, Failed, and Canceled are end statuses; Flashduty records the change’s end time.
On Average Duration Exceeded reports an execution that is still running, not a new stage; Flashduty accepts it and records nothing.
Change content
Labels can be used for routing and for filtering the change list:
Job option values may contain secrets and are not recorded.
FAQ
Why don't I see any change?
Why don't I see any change?
- Check that Payload Format is
JSON - Check that On Start, On Success, On Failure, and On Retryable Failure each have a notification
- Only job executions send notifications; ad hoc commands run from the Commands page do not
- Search the Rundeck server log for
Notification failedto see why a delivery failed
Why does a change stay at Processing?
Why does a change stay at Processing?
The end notification did not arrive. Common causes are a job with retries but no On Retryable Failure notification, or a network path from Rundeck to Flashduty that is down. Rundeck tries each notification once and does not resend it.
Which deliveries does Flashduty reject?
Which deliveries does Flashduty reject?
Flashduty rejects a delivery in these cases:
must use format JSON: the notification’s Payload Format isXMLexecution is missingorexecution.id is missing: the body has no execution; check that it comes from a Rundeck webhook notificationunsupported status: an execution status Flashduty does not support yet, for example a custom job status (other); contact us