Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
5.6K

newrelic-deployment-marker newrelic-deployment-marker

Create a new deployment marker in New Relic.

arguments

  • ACCOUNT_ID - Account ID to use if linking back to New Relic
  • API_KEY - New Relic Admin API Key
  • APPLICATION_ID - New Relic Application ID
  • AUTHOR - Author of the deployment event
  • CHANGELOG - Changelog of the deployment event
  • DESCRIPTION - Description of the deployment event
  • REVISION - Revision being deployed
    version: '1.0'
steps:
  MarkDeployment:
    stage: deploy
    type: newrelic-deployment-marker
    arguments:
      APPLICATION_ID: '${{NEWRELIC_APPLICATION_ID}}'
      API_KEY: '${{NEWRELIC_API_KEY}}'
      REVISION: '${{CF_SHORT_REVISION}}'
      DESCRIPTION: '${{CF_BUILD_URL}}'
      AUTHOR: '${{CF_COMMIT_AUTHOR}}'
      CHANGELOG: '${{CF_COMMIT_MESSAGE}}'

  
    version: '1.0'
steps:
  MarkDeployment:
    stage: deploy
    type: newrelic-deployment-marker
    arguments:
      APPLICATION_ID: '${{NEWRELIC_APPLICATION_ID}}'
      API_KEY: '${{NEWRELIC_API_KEY}}'
      REVISION: '${{CF_SHORT_REVISION}}'
      DESCRIPTION: '${{CF_BUILD_URL}}'
      AUTHOR: '${{CF_COMMIT_AUTHOR}}'
      CHANGELOG: '${{CF_COMMIT_MESSAGE}}'
      ACCOUNT_ID: '${{NEWRELIC_ACCOUNT_ID}}'

  
github.com
Jesse Antoszyk
Nov 1, 2024