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 Comment jira-issue-comment
Add or update a Jira issue comment
arguments
JiraTicketUpdate:
title: Add Jira Comment
type: jira-issue-comment
arguments:
JIRA_BASE_URL: 'https://company-name.atlassian.net'
JIRA_USERNAME: jira-dev-ops-user
JIRA_API_KEY: '${{JIRA_API_KEY}}'
JIRA_ISSUE_SOURCE_FIELD: SA-19
BUILD_MESSAGE: '${{BUILD_MESSAGE}}'
BUILD_STATUS: Build Started
JiraTicketUpdate:
title: Update Jira Comment
type: jira-issue-comment
arguments:
JIRA_BASE_URL: 'https://company-name.atlassian.net'
JIRA_USERNAME: jira-dev-ops-user
JIRA_API_KEY: '${{JIRA_API_KEY}}'
JIRA_ISSUE_SOURCE_FIELD: SA-19
JIRA_COMMENT_ID: '${{JIRA_COMMENT_ID}}'
BUILD_MESSAGE: '${{BUILD_MESSAGE}}'
BUILD_STATUS: Build Completed
JiraTicketUpdate:
title: Add Jira Comment With Info
type: jira-issue-comment
arguments:
JIRA_BASE_URL: 'https://company-name.atlassian.net'
JIRA_USERNAME: jira-dev-ops-user
JIRA_API_KEY: '${{JIRA_API_KEY}}'
JIRA_ISSUE_SOURCE_FIELD: SA-19
BUILD_MESSAGE: '${{BUILD_MESSAGE}}'
BUILD_STATUS: Build Completed
ADD_BRANCH_INFO: true
ADD_COMMIT_INFO: true
ADD_PR_INFO: true