Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Plugin's icon
74

import-annotations import-annotations

Import Annotations to Pipeline Variables

arguments

  • ENTITY - Entity ID.
  • ENTITY_TYPE - Type of Entity to Query
  • PIPELINENAME - Name of Pipeline to Query for Last Successful Build.
  • PREFIX - PREFIX for the Environment Variables.
    ImportAnnotationsFromLastSuccessfulBuildOfPipeline:
  type: import-annotations
  arguments:
    PIPELINENAME: pipeline-name
    PREFIX: SOURCE_

  
    ImportBuildAnnotations:
  type: import-annotations
  arguments:
    ENTITY: 5ef51598c4d99754ceed364b
    ENTITY_TYPE: build
    PREFIX: BUILD_

  
    ImportDockerImageAnnotations:
  type: import-annotations
  arguments:
    ENTITY: fac802bcb4ef
    ENTITY_TYPE: image
    PREFIX: IMAGE_

  
github.com
Dustin Van Buskirk
Jun 30, 2020