Jira GitOps integration
Integrate Jira with GitOps for image enrichment with ticket information
Codefresh offers native integration with Atlassian Jira, enabling you to enrich images with Jira ticket information. This integration allows you to track a feature from its creation in Jira through to its implementation and deployment across environments, providing visibility into the full lifecycle.
For general information on issue-tracking integrations, see Issue-tracking GitOps integrations.
Prerequisites
- Get your Jira instance credentials by following the Atlassian documentation.
- Note down the following as you will need them to complete the integration with Codefresh:
- Jira URL
- Jira username/email to be used for the integration
- Jira password/token created for this user
Jira-GitOps integration settings in Codefresh
For the complete argument reference, see GitOps integration argument reference.
Setting | Description |
---|---|
Integration name | A friendly name for the integration. This is the name you will reference in the third-party CI platform/tool. |
All Runtimes/Selected Runtimes | The runtimes in the account with which to share the integration resource. The integration resource is created in the Git repository with the shared configuration, within resources . The exact location depends on whether the integration is shared with all or specific runtimes:
|
Jira Host | The URL of your Jira instance. For example, https://<company>.atlassian.net |
API Token | The Jira password/token you noted down when you created the Jira instance. To authenticate through a PAT (Personal Access Token) from your Git provider, see Using PAT instead of API token for Jira authentication. |
API Email | The email for the API token. |
Using PAT instead of API token for Jira authentication
In addition to API tokens, Codefresh supports using a PAT (Personal Access Token) from your Git provider for authentication to Jira servers. PAT-based authentication provides an alternative method to access Jira integrations for image enrichment with issue tracking information.
To authenticate through a PAT, you need to:
- Explicitly configure the PAT through the
CF_JIRA_SERVER_PAT
argument. - Use
CF_JIRA_HOST_URL
with the URL of your Jira instance (instead ofCF_ISSUE_TRACKING_INTEGRATION
with the name of the Jira integration in Codefresh).
Here’s an example with the subset of JIRA-specific arguments you would use with PAT authentication:
CF_JIRA_HOST_URL
: "https://codefresh-io.atlassian.net"
CF_JIRA_SERVER_PAT
: "***"
CF_JIRA_MESSAGE
: "wip CR-1"
CF_JIRA_PROJECT_PREFIX
: "CR"
Using GitHub Action with Jira in CI pipelines
For pipelines based on GitHub Actions, configure the Jira integration in Codefresh, and then connect your GitHub Action to Codefresh, referencing the Jira integration by name.
Codefresh uses the Secret Key stored in the runtime cluster to securely access Jira and retrieve the information.
Related articles
Shared Configuration Repository
Image enrichment with GitOps integrations
CI integrations
Container registry integrations