Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
pagerduty-alert pagerduty-alert
Sends Alerts (Incidents or Change Events) to PagerDuty API
arguments
CreateIncident:
type: pagerduty-alert
arguments:
API_TOKEN: x2392fhhgdys867gt3fd
PAGERDUTY_ALERT_TYPE: incident
ASSIGNEE_USER_ID: PONU62J
FROM_EMAIL: [email protected]
TITLE: 'Codefresh Build Failed: ${{CF_BUILD_URL}}'
SERVICE_ID: 87hsd2fh38gh7g
SubmitChangeEvent:
type: pagerduty-alert
arguments:
API_TOKEN: x2392fhhgdys867gt3fd
PAGERDUTY_ALERT_TYPE: change_event
EVENT_SOURCE: Codefresh
EVENT_SUMMARY: Deployment Completed