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 |
---|---|
int_<integration-name>_token | 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"