Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
import-annotations import-annotations
Import Annotations to Pipeline Variables
arguments
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_