Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
dynatrace-event dynatrace-event
Sends Event Dynatrace
arguments
CreateDeploymentEvent:
type: dynatrace-event
arguments:
DYNATRACE_ENVIRONMENT_ID: vti11461
API_TOKEN: x2392fhhgdys867gt3fd
EVENT_TYPE: CUSTOM_DEPLOYMENT
DEPLOYMENT_NAME: Application A
DEPLOYMENT_VERSION: 1.0.0
DEPLOYMENT_PROJECT: Production
ENTITYIDS: CLOUD_APPLICATION-5F93DCB0C0A737CD
CreateErrorEvent:
type: dynatrace-event
arguments:
DYNATRACE_ENVIRONMENT_ID: vti11461
API_TOKEN: x2392fhhgdys867gt3fd
EVENT_TYPE: ERROR_EVENT
DESCRIPTION: 'Build Failed: ${{CF_BUILD_URL}}'
TITLE: CODEFRESH BUILD FAILED
SOURCE: Codefresh
ENTITYIDS: CLOUD_APPLICATION-5F93DCB0C0A737CD