Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1f17bd

Browse files
authored
Gerrit integration (#736)
* Update git triggers* Update git triggers and git provider integrationAdded Gerrit to git integrations,and updated structure and content of git triggers* Update git-triggers.mdAdded list of trigger events per provider supported by Codefresh* Update with feedbackReplaced description of Host URL for Gerrit; added mapping for Ref updated trigger* Update git-triggers.md* Update git-triggers.mdRemoved Push heads event from list of Gerrit triggers* Update content for gerritAdded Gerrit requirements to git integration, git triggers, and variables* Add Gerrit to GitOps* Update hosted runtime for Gerrit* Update with review feedbackImplemented review comments for Classic* Update Gerrit integration reqs for GitOpsAdded draft with initial screenshots* Update images for gerrit permissions* Update gerrit-integration.md* Add gerrit enrichers to ci-integrationsAdded gerrit credentials to hosted runtime and edited Gerrit integration* Add gerrit enricher arguments to all CI integrations* Update Gerrit requirementsUpdated permissions and HTTP password reqs in Gerrit; added section on using gerrit in codefresh* Add use gerrit in codefresh* Update gerrit-integration.md* Update content for gerrit integration topics* Update monitor-manage-runtimes.mdAdded link to SSH keys for Gerrit to official documentation* Updated permission set for Gerrit* Update gerrit ssh link* Update git-providers.md
1 parentabda9af commitb1f17bd

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

‎_docs/installation/gitops/hosted-runtime.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Once you authorize access, Codefresh creates two Git repositories, one to store
158158
The Shared Configuration Repository is a centralized Git repository that stores configuration settings for the Hosted GitOps Runtime. Additional Hybrid runtimes provisioned for the account can point to this repo to retrieve and reuse the configuration.
159159
Read about[Shared Configuration Repositories]({{site.baseurl}}/docs/installation/gitops/shared-configuration/).
160160

161+
161162
* Git Source application repo
162163
Codefresh creates a Git Source application repo for every Hosted GitOps Runtime.
163164
Read about[Git sources]({{site.baseurl}}/docs/installation/gitops/git-sources/).

‎_docs/installation/gitops/monitor-manage-runtimes.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,16 @@ Here is a description of the information in the Topology view.
111111
##Configure SSH for GitOps Runtimes
112112
By default, Git repositories use the HTTPS protocol. You can also use SSH to connect Git repositories by entering the SSH private key.
113113

114-
>When SSH is configured for a runtime, when creating/editing Git-Source applications, you can select HTTPS OR SSH as the protocol to connect to the Git repository. See[Repository URL in Application Source definitions]({{site.baseurl}}/docs/deployments/gitops/create-application/#source).
114+
>**NOTE**:
115+
When SSH is configured for a GitOps Runtime, when creating/editing Git-Source applications, you can select HTTPS OR SSH as the protocol to connect to the Git repository. See[Repository URL in Application Source definitions]({{site.baseurl}}/docs/deployments/gitops/create-application/#source).
115116

116117
**SSH keys**
117118
For more information on generating SSH private keys, see the official documentation:
118119
*[GitHub](https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent){:target="\_blank"}
119120
*[GitLab](https://docs.gitlab.com/ee/ssh/#generating-a-new-ssh-key-pair){:target="\_blank"}
120121
*[Bitbucket](https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html){:target="\_blank"}
121122
*[Azure](https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops&tabs=current-page){:target="\_blank"}
123+
*[Gerrit](http://ec2-52-87-125-161.compute-1.amazonaws.com:8080/Documentation/user-upload.html#configure_ssh_public_keys){:target="\_blank"}
122124

123125
**Before you begin**
124126
Copy the SSH private key for your Git provider

‎_docs/integrations/git-providers.md‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Currently Codefresh supports:
2626
* GitLab On-premises
2727
* Azure DevOps Git
2828
* Atlassian Stash (old version of Bibucket Server)
29+
* Gerrit
30+
2931

3032

3133
Atlassian Stash/Bitbucket server, as well as the on-premises version of GitLab and GitHub, are only available to Codefresh enterprise customers.
@@ -88,6 +90,7 @@ For more information on generating SSH keys and adding your public key to your V
8890
*[GitLab documentation](https://docs.gitlab.com/ee/ssh/#generating-a-new-ssh-key-pair){:target="\_blank"}
8991
*[Bitbucket documentation](https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html){:target="\_blank"}
9092
*[Azure documentation](https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops&tabs=current-page){:target="\_blank"}
93+
*[Gerrit documentation](http://ec2-52-87-125-161.compute-1.amazonaws.com:8080/Documentation/user-upload.html#configure_ssh_public_keys){:target="\_blank"}
9194

9295
##GitHub
9396

@@ -360,12 +363,20 @@ Gerrit has a special **Service Users** access-group for CI systems and other bot
360363
1. Click the**Members** tab, and click**Add Members**.
361364
1. Type the email address of the Codefresh user, and select the user from the search results.
362365
1. Click**Add**.
363-
1. Browse to**Repositories** and select the repository for which to set permissions.
366+
1. Browse to**Repositories** and select the repository for which to set permissions, and do the following:
364367
1. Select**Access > Edit**, and set the following permissions:
365368
***Reference**: Set to**refs/***
366-
***Read**:**ALLOW** for Service Users
367-
***Owner**:**ALLOW** for Service Users as`webhooks.config` in`refs/meta/config` requires[owner-level permissions](https://gerrit-review.googlesource.com/Documentation/access-control.html#category_submit){:target="\_blank"}.
368-
***Label Verified**:**-1**,**+1** for Service Users. Gives permission to apply the`Verified` label with either a`-1` or`+1` value.
369+
***Read**:**ALLOW** for Service Users to read branches.
370+
Note that you can also set this permission at the level of**All projects**.
371+
372+
***Owner**:**ALLOW** for Service Users to create webhooks for pipeline triggers.
373+
`webhooks.config` in`refs/meta/config` requires[owner-level permissions](https://gerrit-review.googlesource.com/Documentation/access-control.html#category_submit){:target="\_blank"}.
374+
Note that this permission must be set only at the_repository-level_.
375+
376+
***Label Verified**:**-1**,**+1** for Service Users.
377+
Gives permission to apply the`Verified` label, which is the typical label for CI, with either a`-1` or`+1` value.
378+
Note that you can also set this permission at the level of**All projects**.
379+
369380
1. Continue with[Step 2: Generate password for user in Gerrit](#step-2-generate-password-for-user-in-gerrit).
370381

371382
###Step 2: Generate password for user in Gerrit

‎_docs/pipelines/variables.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@ When a pull request is closed in GitHub, the following variables are also availa
207207

208208
##Gerrit changeId & change message variables
209209

210+
210211
Gerrit has no explicit concept of pull requests, as in other version control systems, to map trigger event payloads to builds. Instead, Gerrit uses`Changes` which serves a similar purpose and functionality as pull requests. You can achieve the same functionality in Codefresh with our`CF_PULL_REQUEST` group of environment variables.
211212

213+
212214
{: .table .table-bordered .table-hover}
213215
| Variable| Description|
214216
| ---------------| ------------------------------------------------------|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp