PagerDuty Events Integration

JFrog Pipelines Documentation

ft:sourceType
Paligo

The PagerDuty Events integration is used to connect JFrog Pipelines platform to PagerDuty for notifying events.

Creating an 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:

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 onExecutenotification.

  • 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"