Create a Pipelines Build YAML for Integration with PagerDuty

JFrog Integrations Documentation

ft:sourceType
Paligo
  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. Visit the official documentation.

  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 follow the official steps on adding a pipeline.