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

Bump Build Number bump-build-number

Bump the build number

arguments

  • ANNOTATION_NAME - Override the build_number annotation name
  • RETRIEVE_CURRENT_VALUE_ONLY - Retrieve the current annotation value without bumping
    BumpBuildNumber:
  title: Bump default build_number annotation
  type: bump-build-number

  
    BumpBuildNumber:
  title: Bump custom annotation name
  type: bump-build-number
  arguments:
    ANNOTATION_NAME: '${{CF_BRANCH}}_build_number'

  
    BumpBuildNumber:
  title: Bump default build_number annotation
  type: bump-build-number
  arguments:
    RETRIEVE_CURRENT_VALUE_ONLY: true

  
github.com
Brandon Phillips
Apr 1, 2022