You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/integrations/ci-integrations/codefresh-classic.md
+72-51Lines changed: 72 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,36 +6,95 @@ sub_group: ci-integrations
6
6
toc:true
7
7
---
8
8
9
-
Use Hosted GitOps with any popular Continuous Integration (CI) solution, not just with Codefresh CI. Codefresh Classic is one of the third-party CI platform/tools that you can connect to Codefresh for deployment with image enrichment and reporting.
10
9
11
-
10
+
Use Hosted GitOps with any popular Continuous Integration (CI) solution, not just with Codefresh CI. Codefresh Classic is one of the third-party CI platform/tools that you can connect to Codefresh for deployment with image enrichment and reporting.
11
+
12
+
13
+
Connecting Codefresh Classic, adds the CI information to images which are displayed in the Images dashboard, as in the example below.
14
+
15
+
{% include
16
+
image.html
17
+
lightbox="true"
18
+
file="/images/integrations/images-dashboard.png"
19
+
url="/images/integrations/images-dashboard.png"
20
+
alt="Images dashboard with enriched image information"
21
+
caption="Images dashboard with enriched image information"
22
+
max-width="70%"
23
+
%}
24
+
25
+
12
26
13
27
For information on how to use the image reporting action in your Codefresh Classic pipeline and how to configure the integration, see[CI Integrations]({{site.baseurl}}/docs/integrations/ci-integrations/).
14
28
15
29
30
+
###Example of Codefresh Classic pipeline with report image step
31
+
32
+
{% highlight yaml %}
33
+
{% raw %}
34
+
35
+
reportImage:
36
+
title: Report image to Codefresh CD
37
+
type: codefresh-report-image
38
+
working_directory: /code
39
+
arguments:
40
+
# The URL to the cluster with the Codefresh runtime to integrate with.
41
+
CF_HOST: '[runtime-host-url]'
42
+
43
+
# Codefresh API key !! Committing a plain text token is a security risk. We highly recommend using encrypted secrets !!
The table describes the arguments required to connect Codefresh Classic to Codefresh.
69
+
The table describes the arguments required to connect Codefresh Classic to Codefresh.
70
+
71
+
>Except for Git branch and Git repo which are required, you can omit other Git provider arguments. Codefresh retrieves the required values from the runtime context selected for the integration.
72
+
73
+
For the complete argument reference, see[CI integration argument reference]({{site.baseurl}}/docs/integrations/ci-integrations/#ci-integration-argument-reference).
|`CF_RUNTIME_NAME`| The runtime to use for the integration. If you have more than one runtime, select the runtime from the list.| Required|
80
+
|`CF_PLATFORM_URL`| The root URL of the Codefresh application. The default value is`https://g.codefresh.io`.| Optional|
23
81
|`CF_API_KEY`| The API key to authenticate the Codefresh Classic user to Codefresh. Generate the key for the integration.| Required|
24
82
|`CF_CONTAINER_REGISTRY_INTEGRATION`| The name of the container registry integration created in Codefresh where the image is stored. To create a container registry integration if you don't have one, click**Create Container Registry Integration**, and then configure the settings. See[Container registry integrations]({{site.baseurl}}/docs/integrations/container-registries/).| Optional|
25
-
|`CF_JIRA_INTEGRATION`| The name of the issue tracking integration created in Codefresh to use to enrich the image. Relevant only if Jira enrichment is required for the image. If you don't have a Jira integration, click**Create Atlassian Jira Integration** and configure settings. See[Jira integration]({{site.baseurl}}/docs/integrations/issue-tracking/jira/).| Optional|
83
+
|`CF_JIRA_INTEGRATION` | Deprecated from version 0.0.565. Replaced by`CF_ISSUE_TRACKING_INTEGRATION`. |_Deprecated_
84
+
|`CF_ISSUE_TRACKING_INTEGRATION`| The name of the issue tracking integration created in Codefresh to use to enrich the image. Relevant only if Jira enrichment is required for the image. If you don't have a Jira integration, click**Create Atlassian Jira Integration** and configure settings. See[Jira integration]({{site.baseurl}}/docs/integrations/issue-tracking/jira/).| Optional|
26
85
|`CF_IMAGE`| The image to be enriched and reported in Codefresh. Pass the`[account-name]/[image-name]:[tag]` built in your CI.| Required|
27
86
|`CF_WORKFLOW_NAME`| The name assigned to the workflow that builds the image. When defined, the name is displayed in the Codefresh platform. Example,`Staging step`| Optional|
28
87
|`CF_GIT_BRANCH`| The Git branch with the commit and PR (pull request) data to add to the image. Pass the Branch from the event payload used to trigger your action.| Required|
29
88
|`CF_GIT_REPO`| The Git repository with the configuration and code used to build the image.| Required|
30
-
|`CF_GIT_PROVIDER`| The Git provider for the integration, and can be either GitHub, GitLab, or Bitbucket.| Required|
31
-
|`CF_GITHUB_TOKEN`| The GitHub authentication token. The token must have`repo` scope. See[Git tokens]({{site.baseurl}}/docs/reference/git-tokens/).| Required|
32
-
|`CF_GITHUB_API_URL`| The URL totheGitHub developer site.| Required|
33
-
|`CF_BITBUCKET_USERNAME`| The username for the Bitbucket or theBitBucket Server (on-prem) account.|Required|
34
-
|`CF_BITBUCKET_PASSWORD`| The password for the Bitbucket or theBitBucket Server (on-prem) account.|Required|
35
-
|`CF_BITBUCKET_HOST_URL`| Relevant for Bitbucket Server accounts only. The URL address of your Bitbucket Server instance. Example,`https://bitbucket-server:7990`.| Required|
36
-
|`CF_JIRA_PROJECT_PREFIX`| Relevant only when`CF_JIRA_INTEGRATION` is defined. The Jira project prefix that identifies the ticket number to use.| Required|
37
-
|`CF_JIRA_MESSAGE`| Relevant only when`CF_JIRA_INTEGRATION` is defined. The Jira issue IDs matching the string to associate with the image.| Required|
38
-
|`CF_JIRA_FAIL_ON_NOT_FOUND`| Relevant only when`CF_JIRA_INTEGRATION` is defined. The report image action when the`CF_JIRA_MESSAGE` is not found. When set to`true`, the report image action is failed.| Required|
89
+
| `CF_GIT_PROVIDER` | The Git provider for the integration, and can be either `github`, `gitlab`, or `bitbucket`. {::nomarkdown} <ul><li>Optional when you don't define other related Git provider arguments. When not defined, Codefresh retrieves the required information from the runtime selected for the integration. <li>Required when you define at least one of the Git provider arguments. For example, when you define <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">CF_GITLAB_TOKEN</span>, then you <i>must</i> define all Git provider arguments, in this case, <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">CF_GIT_PROVIDER</span> as <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">gitlab</span>, and <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">CF_GITLAB_HOST_URL</span>.</li><ul>{:/}| Optional |
90
+
|`CF_GITLAB_TOKEN`| The token to authenticate the GitLab account. {::nomarkdown} <ul><li>Optional when you don't define any GitLab-specific arguments. When not defined, Codefresh retrieves the required information from the runtime selected for the integration. <li>Required when you define at least one of the GitLab-specific arguments, such as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_GIT_PROVIDER</span> as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">gitlab</span>, or <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_GITLAB_HOST_URL</span>.</li><ul>{:/}| Optional|
91
+
|`CF_GITLAB_HOST_URL`| The URL address of your GitLab Cloud/Server instance. {::nomarkdown} <ul><li>Optional when you don't define other related GitLab-specific arguments. When not defined, Codefresh retrievestherequired information from the runtime selected for the integration. <li>Required when you define at least one of the GitLab-specific arguments, such as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_GIT_PROVIDER</span> as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">gitlab</span>, or <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_GITLAB_TOKEN</span>.</li><ul>{:/}| Optional|
92
+
|`CF_BITBUCKET_USERNAME`| The username for the Bitbucket or theBitbucket Server (on-prem) account.{::nomarkdown}<ul><li>Optional when you don't define other related Bitbucket-specific arguments. When not defined, Codefresh retrieves the required information from the runtime selected for the integration. <li>Required when you define at least one of the Bitbucket-specific arguments, such as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_GIT_PROVIDER</span> as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">bitbucket</span>, <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_BITBUCKET_PASSWORD</span> or <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_BITBUCKET_HOST_URL</span>.</li><ul>{:/}| Optional|
93
+
|`CF_BITBUCKET_PASSWORD`| The password for the Bitbucket or theBitbucket Server (on-prem) account.{::nomarkdown} <ul><li>Optional when you don't define other related Bitbucket-specific arguments. When not defined, Codefresh retrieves the required information from the runtime selected for the integration. <li>Required when you define at least one of the Bitbucket-specific arguments, such as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_GIT_PROVIDER</span> as <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">bitbucket</span>, <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_BITBUCKET_USERNAME</span>, or <spanstyle="font-family:var(--font-family-monospace);font-size:87.5%;color:#ad6800;background-color:#fffbe6">CF_BITBUCKET_HOST_URL</span>.</li><ul>{:/}| Optional|
94
+
| `CF_BITBUCKET_HOST_URL` | Relevant for Bitbucket Server accounts only. The URL address of your Bitbucket Server instance. Example, `https://bitbucket-server:7990`. {::nomarkdown}<ul><li>Optional when you don't define other related Bitbucket Server-specific arguments. When not defined, Codefresh retrieves the required information from the runtime selected for the integration.</li><li>Required when you define at least one of the Bitbucket Server-specific arguments, such as <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">CF_GIT_PROVIDER</span> as <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">bitbucket</span>, <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">CF_BITBUCKET_USERNAME</span> or <span style="font-family: var(--font-family-monospace); font-size: 87.5%; color: #ad6800; background-color: #fffbe6">CF_BITBUCKET_PASSWORD</span>.</li></ul>{:/} | Optional |
95
+
|`CF_JIRA_PROJECT_PREFIX`| Relevant only when`CF_ISSUE_TRACKING_INTEGRATION` is defined. The Jira project prefix that identifies the ticket number to use.| Required|
96
+
|`CF_JIRA_MESSAGE`| Relevant only when`CF_ISSUE_TRACKING_INTEGRATION` is defined. The Jira issue IDs matching the string to associate with the image.| Required|
97
+
|`CF_JIRA_FAIL_ON_NOT_FOUND`| Relevant only when`CF_ISSUE_TRACKING_INTEGRATION` is defined. The report image action when the`CF_JIRA_MESSAGE` is not found. When set to`true`, the report image action is failed.| Required|
39
98
40
99
For how-to instructions, see[Connect a third-party CI platform/tool to Codefresh]({{site.baseurl}}/docs/integrations/ci-integrations/#connect-a-third-party-ci-platformtool-to-codefresh/).
41
100
@@ -142,44 +201,6 @@ The Jira message represents an existing Jira issue, and must be a literal string
142
201
Value:
143
202
`CR-1246`
144
203
145
-
###Example of report image step in Codefresh Classic pipeline
146
-
147
-
{% highlight yaml %}
148
-
{% raw %}
149
-
150
-
reportImage:
151
-
title: Report image to Codefresh CD
152
-
type: codefresh-report-image
153
-
working_directory: /code
154
-
arguments:
155
-
# The URL to the cluster with the Codefresh runtime to integrate with.
156
-
CF_HOST: '[runtime-host-url]'
157
-
158
-
# Codefresh API key !! Committing a plain text token is a security risk. We highly recommend using encrypted secrets !!