Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9090194b
Commit
9090194b
authored
Dec 18, 2017
by
James Ramsay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pull mirroring trigger API docs
parent
f3f9173d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
doc/workflow/repository_mirroring.md
doc/workflow/repository_mirroring.md
+21
-8
No files found.
doc/workflow/repository_mirroring.md
View file @
9090194b
...
...
@@ -84,6 +84,16 @@ this branch to prevent any changes from being lost.
![
Diverged branch
](
repository_mirroring/repository_mirroring_diverged_branch.png
)
### Trigger update using API
>[Introduced][ee-3453] in GitLab Enterprise Edition 10.3.
Pull mirroring uses polling to detect new branches and commits added upstream,
often many minutes afterwards. If you notify GitLab by
[
API
][
pull-api
]
, updates
will be pulled immediately.
Read the
[
Pull Mirror Trigger API docs
][
pull-api
]
.
### Pull only protected branches
>[Introduced][ee-3326] in GitLab Enterprise Edition 10.3.
...
...
@@ -201,15 +211,15 @@ to keep the mirror running.
### How it works
Once you activate the pull mirroring feature, the mirror will be inserted into
a queue.
A scheduler will start every minute and schedule a fixed amount of mirrors for update, based
on the configured maximum capacity.
Once you activate the pull mirroring feature, the mirror will be inserted into
a queue. A scheduler will start every minute and schedule a fixed amount of
mirrors for update, based
on the configured maximum capacity.
If the mirror successfully updates it will be enqueued once again with a small
backoff
period.
If the mirror successfully updates it will be enqueued once again with a small
backoff
period.
If the mirror fails (eg: branch diverged from upstream), the project's
backoff
period will be penalized each time it fails up to a maximum amount of time.
If the mirror fails (eg: branch diverged from upstream), the project's
backoff
period will be penalized each time it fails up to a maximum amount of time.
## Pushing to a remote repository
...
...
@@ -264,7 +274,7 @@ To set up a mirror from GitLab to GitHub, you need to follow these steps:
1.
And either wait or trigger the "Update Now" button:
![update now](repository_mirroring/repository_mirroring_gitlab_push_to_a_remote_repository_update_now.png)
## Forcing an update
While mirrors are scheduled to update automatically, you can always force an update (either
**push**
or
...
...
@@ -304,6 +314,9 @@ custom Git hooks][hooks] on the GitLab server.
[
ee-3117
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3117
[
ee-3326
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3326
[
ee-3350
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3350
[
ee-3453
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3453
[
perms
]:
../user/permissions.md
[
hooks
]:
../administration/custom_hooks.html
[
deploy-key
]:
../ssh/README.md#deploy-keys
[
webhook
]:
../user/project/integrations/webhooks.html#push-events
[
pull-api
]:
../api/projects.html#start-the-pull-mirroring-process-for-a-project
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment