Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Jira issue extractor from any source jira-issue-extractor
Extract jira issue from message and convert it to image annotation
arguments
build:
title: Building Docker image
type: build
image_name: 'codefresh/${{CF_REPO_NAME}}'
tag: '${{PACKAGE_VERSION}}'
dockerfile: Dockerfile
jira-issue-extractor:
title: Enrich image with annotations
type: jira-issue-extractor
arguments:
IMAGE: 'gcr.io/codefresh-inc/codefresh/${{CF_REPO_NAME}}:${{IMAGE_TAG}}'
JIRA_PROJECT_PREFIX: '${{CF_BRANCH}}'
MESSAGE: SAAS-21011-ability-to-remove-user
JIRA_HOST: codefresh-io.atlassian.net
JIRA_EMAIL: pavel@codefresh.io
JIRA_API_TOKEN: '******'