The PagerDuty Events integration is used to connect JFrog Pipelines platform to PagerDuty for notifying events.
Creating a Pager Duty Events Integration
You can add this integration by following steps on the Managing Pipelines Integrations page.
Here is the information you need to create an PagerDuty Events integration:
Name -- choose a friendly name for the integration.
Token -- PagerDuty integration key/token.
Usage
The PagerDuty integration can be used in the send_notification utility function.
Default Environment Variables
When you add this integration directly to a step, a set of environment variables is automatically made available.
Environment variable | Description |
---|---|
| The integration key that identifies your PagerDuty service |
Example
This example uses a PagerDuty integration named
myPagerDuty
.The send_notification utility function is used to send an
onExecute
notification.The YAML for this example is available in this repository in the JFrog GitHub account.
Sending notifications
pipelines: - name: pipeline_pd steps: - name: bash_pagerduty_success type: Bash configuration: integrations: - name: myPagerDuty execution: onStart: - echo "starting" onExecute: - send_notification myPagerDuty -text "hello world from JFrog Pipelines run number $run_number"