---
updatedAt: 2026-06-07T11:58:43.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/integrations/llms.txt
---

# PagerDuty Integrations

This section describes integrations with PagerDuty.

## Artifactory Integration with PagerDuty

PagerDuty is a SaaS-based platform that helps to prevent and resolve business-impacting incidents.

Usually, when making software updates to your binaries and applications, your development teams don’t always have direct access to the metadata surrounding events (example: during the compilation of that code). Getting this information is especially important when you have different teams in charge of different parts of your software delivery pipeline. Our integration with PagerDuty allows this monitoring to take place so your on-call teams can monitor events in real-time.

For a list of supported notifications with PagerDuty integration with Artifactory, see [Types of Supported Notifications with Artifactory Integration with PagerDuty](#types-of-supported-notifications-with-artifactory-integration-with-pagerduty).

#### How it Works

* Users will install the JFrog Artifactory integration application from within the PagerDuty Service Directory and receive a URL to setup the PagerDuty webhook events within JFrog Artifactory.
* JFrog Artifactory will utilize the PagerDuty webhook trigger to send notifications to PagerDuty. Users will be able to configure their webhook events for repositories, builds, artifact properties, and release bundles within JFrog Artifactory and associate these events with the PagerDuty webhook trigger.
* Once the webhook is configured within JFrog Artifactory, a change event alert will be available within the PagerDuty service whenever an event occurs.
* Artifactory performs a re-check of all selected repositories, builds, artifact properties, and release bundles and any events generated will be sent as a change event to the service in PagerDuty. Events from Artifactory will trigger a new change event on the corresponding PagerDuty service, or group them as alerts into an existing change event.

#### Configuration Overview

For instructions on how to set up this configuration, see [Artifactory Integration with PagerDuty Configuration Overview](#artifactory-integration-with-pagerduty-configuration-overview).

#### Support

If you need help with this integration, contact <Anchor label="support@jfrog.com" href="http://mailto:support@jfrog.com" target="_blank"><support@jfrog.com></Anchor>.

### Artifactory Integration with PagerDuty Configuration Overview

This topic reviews how to integrate Artifactory with PagerDuty.

#### Requirements

* PagerDuty integration requires an Admin base role for account authorization. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.
* JFrog Artifactory requires an Admin based role with administrative privileges to configure the integration. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.

#### Configuration Overview

To work with the integration:

<Table>
  <thead>
    <tr>
      <th>
        #
      </th>
      <th>
        Task
      </th>
      <th>
        Description
      </th>
      <th>
        For more information, see...
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        1
      </td>
      <td>
        **Set up PagerDuty**
      </td>
      <td>
        Register an account with PagerDuty and hover over the people tab to get started.
      </td>
      <td>
        [Setup PagerDuty for Integration with Artifactory](#setup-pagerduty-for-integration-with-artifactory)
      </td>
    </tr>
    <tr>
      <td>
        2
      </td>
      <td>
        **Integrate with a an existing service or create a new one.**
      </td>
      <td>
        Create a new PagerDuty service in Artifactory if you don't already have one set up.
      </td>
      <td>
        [Add the JFrog Integration as New Service for Artifactory Integration with PagerDuty](#add-the-jfrog-integration-as-new-service-for-artifactory-integration-with-pagerduty)
      </td>
    </tr>
    <tr>
      <td>
        3
      </td>
      <td>
        **Set up webhooks**
      </td>
      <td>
        Set up webhooks and define events to include for notifications.
      </td>
      <td>
        [Setup Webhooks in JFrog Artifactory for Integration with PagerDuty](#setup-webhooks-in-jfrog-artifactory-for-integration-with-pagerduty)
      </td>
    </tr>
  </tbody>
</Table>

#### Setup PagerDuty for Integration with Artifactory

First, if you don’t already have one, you’ll need to register an account with PagerDuty. Then, once logged into PagerDuty, you’ll hover over the People tab to get started. You can refer to the <Anchor label="PagerDuty Quick Start Guide" href="https://support.pagerduty.com/docs/quick-start-guide" target="_blank">PagerDuty Quick Start Guide</Anchor> for more information regarding each of these pre-steps to setup and associate your recent changes with a service within PagerDuty.

![63d8a9047b94a.png](https://files.readme.io/f8ba74e7e86a51bcd9cbb7cd64dacf360aba1b9ca2d90e704ea991063c6f87ed-uuid-aab35940-0cb0-27dc-e03b-41e5ead03488.png)

#### Add the JFrog Integration as New Service for Artifactory Integration with PagerDuty

Add JFrog Artifactory integration to an existing PagerDuty service or create a new service by following the steps below:

1. First, you’ll need to create a new service. Navigate to **Services > Service Directory** and click **+New Service**.
2. On the next screen, give your new service a name.

   ![63d8a905ee8d8.png](https://files.readme.io/53ac4774f535bea6d0be5ae5a742fc78f5b8f3f605ec679ffdc4011cacffd859-uuid-af12c1e3-7bd8-1b6b-490b-e302299cdd21.png)
3. After you get to step 4, search for “jfrog” and select JFrog Artifactory Notifications. You’ll then click on the Create Service button.

   ![63d8a907c3de8.png](https://files.readme.io/6781e3f32b6f0f9baf0dfaa76d3608399d1ac0bf033d7d2abd90a27d157a7bf9-uuid-de418b8b-4b9f-ddc6-1a5f-98900e25afca.png)
4. You’ll now see the following information. Copy the **Integration URL** as you’ll be using it to create your webhooks in the JFrog Platform:

   ![63d8a9098b318.png](https://files.readme.io/59a9979556e383b39022095a511071b5f3957dbec1506258b3926a16da5aded6-uuid-37ec3bca-bdcb-fd23-babf-01fb41294c11.png)
5. Once, you have created a service inside PagerDuty, you’ll need to login to your JFrog instance to create webhooks. These webhooks will send event data to PagerDuty an serve as the basis for your alerts.

#### Setup Webhooks in JFrog Artifactory for Integration with PagerDuty

1. First, please login to your JFrog Platform instance.

   ![63d8a90b5d72b.png](https://files.readme.io/13590049ef436012beea832c94ca7102d7129be1807a73c3a8134059a92c138b-uuid-41361bda-c64c-7d4b-865b-8306f633ad4e.png)
2. Under the administration panel, click on **General > Webhooks**. Next, select **+ New Webhook** from the top-right corner.

   ![63d8a90dc21cd.png](https://files.readme.io/1c72ab1421e9678e47ba9296222bf976dda17977eee2f44ddb71cbe804ac84bf-uuid-43b6c961-bf90-c365-4a19-3302f3a59a1c.png)
3. Next, provide a name to your new webhook. After providing the name, please copy the Integration URL from PagerDuty and paste it where it says URL here.

   ![63d8a90f6cba4.png](https://files.readme.io/8b95ca1873d36ee213aa61b639f53f9de5f0d370364eb3955c5cfa4e2985167f-uuid-b9f5d8fb-7afc-4ef7-80c7-a54e65e59074.png)
4. Then, select the types of events to include. In this example, we’re creating a Build webhook notification.

   ![63d8a910e1ed7.png](https://files.readme.io/91fd2580db3e8943e27ec00087f82dcd716145b8826ed12ba08c15774807ed24-uuid-e9d98ff6-ddde-0346-b064-f49f6e6600ca.png)
5. Now, select the repositories to include in this webhook notification.

   ![63d8a91324130.png](https://files.readme.io/1efc323df235de7ea4b4e3236f07ae8452f30969d3501d27771838c0715c0766-uuid-b9950f3e-abaa-8c86-b3ec-87fde8e4c6b6.png)
6. Hit **Save**.
7. At the bottom of the main screen, you can Test the notification, by selecting the **Test** button.

   This will send your webhook event to your PagerDuty integration.
8. After you have tested your webhook, hit **Create** and you’re done.
9. Once you have tested and finish creating your webhooks, you can see them as recent changes in PagerDuty:

   ![63d8a915305da.png](https://files.readme.io/699aad69b066c7529149aaef39032486ba2d95bd3da9d51aa57646589a2db034-uuid-c97ab314-bcaa-1044-d462-1cad78a7fa2f.png)

### Types of Supported Notifications with Artifactory Integration with PagerDuty

All notifications are based on webhook events in the JFrog Platform. The currently supported notifications include:

<Table>
  <thead>
    <tr>
      <th>
        Type
      </th>
      <th>
        Events
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        Artifact
      </td>
      <td>
        *deployed, deleted, moved, copied*
      </td>
    </tr>
    <tr>
      <td>
        Artifact Properties
      </td>
      <td>
        *added, deleted*
      </td>
    </tr>
    <tr>
      <td>
        Docker Tag
      </td>
      <td>
        *pushed, deleted, promoted*
      </td>
    </tr>
    <tr>
      <td>
        Builds
      </td>
      <td>
        *uploaded, deleted, promoted*
      </td>
    </tr>
    <tr>
      <td>
        Release Bundles (Enterprise+)
      </td>
      <td>
        *created, signed, deleted*
      </td>
    </tr>
    <tr>
      <td>
        Distribution (Enterprise+)
      </td>
      <td>
        *stared, completed, aborted, failed, deletion started, deletion failed, deletion completed*
      </td>
    </tr>
  </tbody>
</Table>

### Uninstall Artifactory Integration with PagerDuty

1. Find the integration to delete by navigating to **Services** and selecting **Service Directory**.
2. Select the service with your integration and navigate to **Integrations** tab.
3. Navigate to the integration by clicking on the integration name (**JFrog Artifactory Notifications**).
4. Click on the **Delete Integration** button on the top right corner.

## Xray Integration with PagerDuty

PagerDuty integration with JFrog enables you to manage security and compliance proactively across the software development and release lifecycle. This integration allows you to receive early notifications within PagerDuty on vulnerabilities and compliance violations impacting artifacts, builds and components before production release.

<Callout icon="❗️" theme="error">
**Important**

This integration was updated on July 12 2023 with the following improvements.

* **Summarized Notifications** - Instead of getting hundreds of notifications from JFrog Xray, you get a much shorter list of notifications summarized by severity.
* **Link to the Scan Results page in JFrog Xray Included in your PagerDuty event** - This is where you can check details of each vulnerability, CVE etc.
</Callout>

#### Benefits

* **Proactively manage security and compliance** across the software development and release lifecycle. Receive early notifications within PagerDuty on vulnerabilities and compliance violations impacting artifacts, builds and components before releasing to production.
* **Customize notifications** - Configure granular policies within JFrog Xray based on type of violation, severity, and receive notifications on repositories, builds or release bundles of interest.
* **Summarized notifications for easy consumption** - Receive a summary of Xray watch issues by severity as well as the link to the watch scan results as a PagerDuty event.

#### How it Works

* Users will install the JFrog Xray integration application from within the PagerDuty Service Directory and receive a URL to setup the PagerDuty webhook within JFrog Xray
* JFrog Xray will utilize the PagerDuty webhook trigger to send notifications to PagerDuty. Users will be able to configure their rules and set up watch policies for repositories, builds and release bundles within JFrog Xray and associate these rules with the PagerDuty webhook trigger.
* Once the webhook is configured within JFrog Xray, an incident will be sent to the PagerDuty service whenever security or license violation occurs.
* Xray performs a recheck of all watched resources and any found violations will send an event to a service in PagerDuty. Events from Xray will trigger a new incident on the corresponding PagerDuty service, or group as alerts into an existing incident.

#### Support

If you need help with this integration, contact <Anchor label="support@jfrog.com" href="http://mailto:support@jfrog.com" target="_blank"><support@jfrog.com></Anchor>.

### Xray Integration with Pager Duty Service Configuration Overview

This topic reviews how to integrate Xray with PagerDuty Service.

To configure the integration, you must first have a PagerDuty account setup. Next, follow the instructions below or <Anchor label="watch the video" href="https://www.youtube.com/watch?v=WxUc8bcEh0U" target="_blank">watch the video</Anchor> to understand how to finish the integration.

#### Requirements

* PagerDuty integration requires an admin base role for account authorization. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.
* JFrog Xray requires an Admin based role with administrative privileges to configure the integration. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.

For information available with PagerDuty integration for Xray, see [Available Information in PagerDuty with Xray Integration](#available-information-in-pagerduty-with-xray-integration)

#### Configuration Overview

Add JFrog Xray integration to an existing PagerDuty service or create a new service by doing the following:

<Table>
  <thead>
    <tr>
      <th>
        #
      </th>
      <th>
        Task
      </th>
      <th>
        Description
      </th>
      <th>
        For more information, see...
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        1
      </td>
      <td>
        **Integrate Xray with PagerDuty service**
      </td>
      <td>
        Add the integration to an existing or new service.
      </td>
      <td>
        [Integrating Xray with a Pager](#integrate-xray-with-a-pagerduty-service)
      </td>
    </tr>
    <tr>
      <td>
        2
      </td>
      <td>
        **Configure Xray for the PagerDuty integration**
      </td>
      <td>
        Configure webhooks, an Events API endpoint, policyname and more.
      </td>
      <td>
        [Configure JFrog Xray for integration with PagerDuty](#configure-jfrog-xray-for-integration-with-pagerduty)
      </td>
    </tr>
  </tbody>
</Table>

#### Integrate Xray with a PagerDuty Service

1. From the **Configuration** menu, select **Services**.
2. There are two ways to add an integration to a service:

   * **If you are adding your integration to an existing service**: Click the **name** of the service you want to add the integration to. Then, select the **Integrations** tab and click the **New Integration** button.
   * **If you are creating a new service for your integration**: Please read our documentation in section <Anchor label="Configuring Services and Integrations" href="https://support.pagerduty.com/docs/services-and-integrations#section-configuring-services-and-integrations" target="_blank">Configuring Services and Integrations</Anchor> and follow the steps outlined in the <Anchor label="Create a New Service" href="https://support.pagerduty.com/docs/services-and-integrations#section-create-a-new-service" target="_blank">Create a New Service</Anchor> section, selecting ***JFrog Xray + PagerDuty Notifications*** as the **Integration Type** in step 4. Continue with the In ***JFrog Xray Setup*** section (below) once you have finished these steps.
3. Enter an **Integration Name** in the format `JFrog` and select ***JFrog Xray + PagerDuty Notifications*** from the Integration Type menu.
4. Click the **Add Integration** button to save your new integration. You will be redirected to the Integrations tab for your service.
5. An **Integration Key** will be generated on this screen. Click on the integration name next to the integration key and copy the **integration URL** in a safe place as it will be used when you configure the integration with ***JFrog Xray + PagerDuty Notifications*** in the next section.

   ![integrations](https://files.readme.io/24227009f36cb8b16b00611fd9e52ed303a773979d5775252ac989db11918677-uuid-ee72d4bd-49f1-dd95-6361-d5aa9eabb074.png)

#### Configure JFrog Xray for integration with PagerDuty

1. Navigate to **Xray Security & Compliance** in JFrog Platform’s **Administration** section and click on it

   ![step1](https://files.readme.io/717c7420144ef18493a1fb9f7c0d5a3547632e67adb3510d893506066e98be07-uuid-21ee35cc-517d-c09b-0252-39b21c9eead2.png)
2. Click on **Webhooks** in the **General** tile
3. Create a **new webhook** for pagerduty

   ![new webhook](https://files.readme.io/05aebd3ed74fc3f7c866a551b9ee4d0bea4ad464d2fca57530fcab634c403cdf-uuid-0878b435-5958-1824-7357-c9715144856b.png)
4. Enter **Webhook Name**
5. Enter **URL** (URL is the Events API endpoint from pagerduty) e.g., `https://events.pagerduty.com/integration/integration_id/enqueue`
6. Click **Save**
7. Navigate to **Security and Compliance** in JFrog Platform’s **Application** section and select **Policies**

   ![step7](https://files.readme.io/d11c00e980b662e25168def59d423666c5a6412cd5bcf64afcc73c4e2b86f3f5-uuid-e2dc7448-1dee-8051-2896-726eff71b660.png)
8. Next, specify the **policy name** and select **security** from the dropdown list below policy name

   ![step8](https://files.readme.io/b3f46ae7f4fc3c94d27f9220948d087a9f62155d8ca7b964ef55e3e379bd4323-uuid-a322d9cf-9cc0-4ca1-f864-5e94aba22355.png)
9. Next, create a **new rule** for the policy by clicking on the **New Rule** to the right

   ![new rule](https://files.readme.io/e15596610e7edaf09e20da0393269559a9569e4f382acb7a574bdb61d1502370-uuid-2f23fb24-0847-6d17-069d-83109a893028.png)
10. Enter a **rule name**
11. In the **criteria** section, select the **minimal severity** or the **cvss score**. Violations in Xray are filtered based on this criteria and sent to pagerduty
12. In the **Automatic Actions** section, select **Trigger Webhook** checkbox and select the webhook that you created above for pagerduty
13. Click on **Save**

    ![step13](https://files.readme.io/98f2fd190a6767f308456ef813f06b254d7a2eb2c34065ead5875c8d28588899-uuid-bc92ae92-8440-f2d4-8ca0-38ffc48258e3.png)
14. A policy rule is created with the rule name sepecified in Step10
15. Click **create** to create a policy with name specified in Step8
16. Navigate to **watches** in the **Security and Compliance** section on the left

    ![step16](https://files.readme.io/f6eb79797ccd63cd28ba39914b15b4d917a78e003dfd0dfb14389f419d1d1f27-uuid-6099cdc0-58c8-da08-beae-f1939d036b70.png)
17. Create a **new watch** or edit an existing watch
18. In order to create a new watch, click on the **New Watch** present at the top right corner of the screen
19. Enter the **name** and description of the watch
20. In **Manage Resources** section, click on **Add repositories** or **Add Builds** or **Add Bundles** and then include the resource that you want to watch from the available resources and click **Save**
21. In the **Assigned policies** section, Click on **Manage policies** towards the right and include the policy created in Step15 and click **Save**
22. Click **Save** to save the watch
23. You’ll see the watch in the list of watches
24. To manually trigger a watch, click on the **play button** and this will start sending any violations related to the watch to pagerduty

    ![step24](https://files.readme.io/12eadc0f27d2802106d9d208105d2d7462bdefbf0cebbeb4bf7f4e666e7ba1be-uuid-8db7e276-50fb-90c3-bdf1-a5b4d2772c4b.png)

### Available Information in PagerDuty with Xray Integration

Once you have setup using the walkthrough below, the following metadata will become available in PagerDuty:

<Table>
  <thead>
    <tr>
      <th>
        CUSTOM DETAILS
      </th>
      <th>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        created
      </td>
      <td>
        2019-11-21T04:47:09.837Z
      </td>
    </tr>
    <tr>
      <td>
        cve
      </td>
      <td>
        CVE-2019-19126
      </td>
    </tr>
    <tr>
      <td>
        description
      </td>
      <td>
        On the x86-64 architecture, the GNU C Library (aka glibc) before 2.31 fails to ignore the LD\_PREFER\_MAP\_32BIT\_EXEC environment variable during program execution after a security transition, allowing local attackers to restrict the possible mapping addresses for loaded libraries and thus bypass ASLR for a setuid program.
      </td>
    </tr>
    <tr>
      <td>
        impacted\_artifacts
      </td>
      <td>
        [ `{ "depth": 0, "display\_name": "connector:0.8.0", "infected\_files": [ { "depth": 0, "display\_name": "debian:buster:libc6:2.28-10", "name": "libc6:2.28-10", "parent\_sha": "9411f38bb959244da6cb01b9baeb079f9e5193832ad5c7b4ad3aa45301f50e1c", "path": "", "pkg\_type": "Debian", "sha256": "30fe03584a947466c61145df3cd7ea3c0503aa319b8bc913f373701fdff44e85" } ], "name": "manifest.json", "parent\_sha": "6537920ab5240121a74713c46c3f5a3f0a13db43fe16684be6db91dd21706501", "path": "default/integrations/connector/0.8.0/", "pkg\_type": "Docker", "sha1": "", "sha256": "6537920ab5240121a74713c46c3f5a3f0a13db43fe16684be6db91dd21706501" }` ]
      </td>
    </tr>
    <tr>
      <td>
        provider
      </td>
      <td>
        JFrog
      </td>
    </tr>
    <tr>
      <td>
        severity
      </td>
      <td>
        Low
      </td>
    </tr>
    <tr>
      <td>
        summary
      </td>
      <td>
        On the x86-64 architecture, the GNU C Library (aka glibc) before 2.31 fails to ignore the LD\_PREFER\_MAP\_32BIT\_EXEC environment variable during program execution after a security transition, allowing local attackers to restrict the possible mapping addresses for loaded libraries and thus bypass ASLR for a setuid program.
      </td>
    </tr>
    <tr>
      <td>
        type
      </td>
      <td>
        security
      </td>
    </tr>
    <tr>
      <td>
        policy
      </td>
      <td>
        PD\_Test-2-policy
      </td>
    </tr>
    <tr>
      <td>
        watch
      </td>
      <td>
        PD\_Test-2-Watch
      </td>
    </tr>
  </tbody>
</Table>

### Uninstall the PagerDuty Integration with Xray

1. Find the integration to delete by navigating to **Services** and selecting **Service Directory**
2. Select the service with your integration and navigate to **Integrations** tab
3. Navigate to the integration by clicking on the integration name (**JFrog Xray + PagerDuty Notifications**)
4. Click on the **Delete Integration** button on the top right corner

## Pipelines Integration with PagerDuty

PagerDuty integration with JFrog enables you monitor your software release pipeline in real-time, receive up-to-date notifications within PagerDuty about the progress of your builds throughout the various stages in your continuous integration and continuous deployment pipeline. This allows you to respond quickly to build failures and to receive actionable, granular information about a particular pipeline step.

#### Benefits

* Monitor your software release pipeline in real-time. Receive up-to-date notifications within PagerDuty about the progress of your builds throughout the various stages in your continuous integration and continuous deployment pipeline.
* Respond quickly to build failures. Receive actionable, granular information about a particular pipeline step, including its status, name, type, and other details to respond quickly to builds that are failing or taking too long to complete

#### How it Works

* JFrog Pipeline will send notifications by calling PagerDuty’s Events API.
* PagerDuty users will be able to register the JFrog Pipeline integration application within their developer platform and set up the event integration. Once the setup is complete, JFrog Pipelines will use the Events API to push notifications containing build status information.

#### Support

If you need help with this integration, contact <Anchor label="support@jfrog.com" href="http://mailto:support@jfrog.com" target="_blank"><support@jfrog.com></Anchor>.

### Pipelines Integration with PagerDuty Configuration Overview

This topic reviews how to integrate PagerDuty with Pipelines.

#### Requirements

* PagerDuty integration requires an admin base role for account authorization. If you do not have this role, please reach out to an Admin or Account Owner within your organization to configure the integration.
* JFrog Platform with Pipelines installed with a PagerDuty Pipelines Integration configured.

#### Configuration Overview

To work with the integration, do the following:

<Table>
  <thead>
    <tr>
      <th>
        #
      </th>
      <th>
        Task
      </th>
      <th>
        Description
      </th>
      <th>
        For more information, see...
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        1
      </td>
      <td>
        **Integrate with a PagerDuty service**
      </td>
      <td>
        Add pipelines integration to a PagerDuty service.
      </td>
      <td>
        [Integrate Pipelines with a PagerDuty Service](#integrate-pipelines-with-a-pagerduty-service)
      </td>
    </tr>
    <tr>
      <td>
        2
      </td>
      <td>
        **Create Pipelines integration**
      </td>
      <td>
        Add a Pipelines integration service for PagerDuty.
      </td>
      <td>
        [Create a Pipelines Integration for PagerDuty](#create-a-pipelines-integration-for-pagerduty)
      </td>
    </tr>
    <tr>
      <td>
        3
      </td>
      <td>
        **Create a Pipelines Build YAML**
      </td>
      <td>
        Create a Pipelines build YAM for integration.
      </td>
      <td>
        [Create a Pipelines Build YAML for Integration with PagerDuty](#create-a-pipelines-build-yaml-for-integration-with-pagerduty)
      </td>
    </tr>
    <tr>
      <td>
        4
      </td>
      <td>
        **Run a Pipelines Build**
      </td>
      <td>
        Run the pipelines build.
      </td>
      <td>
        [Run a Pipelines Build with PagerDuty Integration](#run-a-pipelines-build-with-pagerduty-integration)
      </td>
    </tr>
  </tbody>
</Table>

### Integrate Pipelines with a PagerDuty Service

Add JFrog Pipelines integration to an existing PagerDuty service or create a new service with the following the steps.

1. From the **Configuration** menu, select **Services**.
2. There are two ways to add an integration to a service:

   * **If you are adding your integration to an existing service**: Click the **name** of the service you want to add the integration to. Then, select the **Integrations** tab and click the **New Integration** button.
   * **If you are creating a new service for your integration**: Please read our documentation in section <Anchor label="Configuring Services and Integrations" href="https://support.pagerduty.com/docs/services-and-integrations#section-configuring-services-and-integrations" target="_blank">Configuring Services and Integrations</Anchor> and follow the steps outlined in the <Anchor label="Create a New Service" href="https://support.pagerduty.com/docs/services-and-integrations#section-create-a-new-service" target="_blank">Create a New Service</Anchor> section, selecting ***JFrog Pipelines Changes*** as the **Integration Type** in step 4. Continue with the In ***JFrog Pipelines Setup*** section (below) once you have finished these steps.
3. Enter an **Integration Name** in the format `JFrog` and select ***JFrog Pipelines + PagerDuty Notifications*** from the Integration Type menu.
4. Click the **Add Integration** button to save your new integration. You will be redirected to the Integrations tab for your service.
5. An **Integration Key** will be on this screen. This is the key that is called `service integration/routing key` when configuring the UI in pipelines. This confusion is inherited from the inconsistencies in the <Anchor label="PagerDuty api docs" href="https://developer.pagerduty.com/docs/ZG9jOjExMDI5NTgy-send-a-change-event" target="_blank">PagerDuty api docs</Anchor>

   ![IntegrationKey.png](https://files.readme.io/820718d95091f8de957f3eb714c7d3f311da4b63523199a86cc3dbd955085e78-uuid-bef4a7ff-3a6d-6d42-4397-aeeb4ba111ea.png)![IntegrationKey2.png](https://files.readme.io/a215bf89b056840f1c915bd0d15a8cb0422f7b764c77d3c65090376fcc7676fc-uuid-78684fff-ed7f-44be-4be9-bf88b272138a.png)

### Create a Pipelines Integration for PagerDuty

Add JFrog Pipelines integration to an existing PagerDuty service or create a new service with the following steps.

1. Open your JFrog Platform with Pipelines and click on the `Adminstration gears` in the left menu. Click on the `Pipelines` menu item and then click on the sub-tab `Integrations`.
2. Click the `+ Add an Integration` link on the top right.
3. Select `PagerDuty Events` for the integration type

   ![AddNewIntegration.png](https://files.readme.io/6c676f10cd5918a77012722b122d48fbb03bb7c72acd0f76abec9974ad2cf3cd-uuid-c17c0225-b399-07a4-5ced-541fec0432f5.png)
4. Enter a name for this integration which will be used in the pipeline yaml. ex: `MyPagerDutyIntegration`
5. Enter the Pagerduty `Integration Key` created in prior steps.
6. Click Create.

### Create a Pipelines Build YAML for Integration with PagerDuty

1. Create a new git repository or use an existing repository to save a new file `pipeline.yaml`
2. Create a new Pipelines integration for your SCM provider. <Anchor label="Visit the official documentation." href="https://www.jfrog.com/confluence/display/JFROG/Managing+Pipelines+Integrations" target="_blank">Visit the official documentation.</Anchor>
3. Create a new pipeline YAML definition that uses the new PagerDuty Events integration above to send build notifications to PagerDuty.
4. Replace `<MyPagerDutyIntegration>` with the name of the Pipelines integration for Pagerduty

```
resources:
  - name: pagerDutyGitRepo
    type: GitRepo
    configuration:
      gitProvider: MyGithubIntegration
      path: jfrog/jfrog-pipelines-example
pipelines:
  - name: pipeline_pagerduty_example
    steps:
      - name: pagerduty_example_step
        type: Bash
        configuration:
         integrations:
           - name: <MyPagerDutyIntegration>
          inputResources:
            - name: pagerDutyGitRepo
        execution:
          onExecute:
           - send_notification <MyPagerDutyIntegration> --text "<Your message>"
```

Commit the pipeline yaml to your SCM provider and then <Anchor label="follow the official steps on adding a pipeline" href="https://www.jfrog.com/confluence/display/JFROG/Managing+Pipeline+Sources#ManagingPipelineSources-AddingaPipelineSource" target="_blank">follow the official steps on adding a pipeline</Anchor>.

### Run a Pipelines Build with PagerDuty Integration

1. Click the JFrog Pipeline tab `My Pipelines`.
2. Select the Pipeline you have synced .
3. Click the Pipeline tile and click the `Trigger this step` button

   ![PipelineTrigger.png](https://files.readme.io/3da075a3f6b2e654cc5b78c9c122c13379a1adcd1a1bb5e2f9810ae1266262f2-uuid-71990481-9a61-f9a6-f502-54a7b759778a.png)

   .

Or follow the official steps on all the ways of how to <Anchor label="trigger a JFrog pipelines." href="https://www.jfrog.com/confluence/display/JFROG/Triggering+Pipelines+and+Steps" target="_blank">trigger a JFrog pipelines.</Anchor>

### Uninstall Pipelines Integration with PagerDuty

1. Find the integration to delete by navigating to **Services** and selecting **Service Directory**.
2. Select the service with your integration and navigate to **Integrations** tab.
3. Navigate to the integration by clicking on the integration name (**JFrog Pipelines + PagerDuty Notifications**).
4. Click the **Delete Integration** button on the top right corner.
5. Remove any PagerDuty Pipelines in the `Pipelines Sources` tab of JFrog Pipelines by clicking the `Delete` button shown below.

   ![PipelinesDelete.png](https://files.readme.io/7e3b6bacbd3748e95f8c736f3b321ef32acccfb18351db3f39ab083cf4b7217d-uuid-652f2ec2-30a1-dff8-1aeb-e3ff78381a10.png)

   .