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
b42b3796
Commit
b42b3796
authored
Jul 05, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for manifest import feature
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
98d29f6e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
1 deletion
+46
-1
doc/api/settings.md
doc/api/settings.md
+1
-1
doc/user/project/import/img/manifest_status.png
doc/user/project/import/img/manifest_status.png
+0
-0
doc/user/project/import/img/manifest_upload.png
doc/user/project/import/img/manifest_upload.png
+0
-0
doc/user/project/import/index.md
doc/user/project/import/index.md
+1
-0
doc/user/project/import/manifest.md
doc/user/project/import/manifest.md
+44
-0
No files found.
doc/api/settings.md
View file @
b42b3796
...
@@ -105,7 +105,7 @@ PUT /application/settings
...
@@ -105,7 +105,7 @@ PUT /application/settings
|
`housekeeping_gc_period`
| integer | no | Number of Git pushes after which 'git gc' is run. |
|
`housekeeping_gc_period`
| integer | no | Number of Git pushes after which 'git gc' is run. |
|
`housekeeping_incremental_repack_period`
| integer | no | Number of Git pushes after which an incremental 'git repack' is run. |
|
`housekeeping_incremental_repack_period`
| integer | no | Number of Git pushes after which an incremental 'git repack' is run. |
|
`html_emails_enabled`
| boolean | no | Enable HTML emails |
|
`html_emails_enabled`
| boolean | no | Enable HTML emails |
|
`import_sources`
| Array of strings | no | Sources to allow project import from, possible values: "github bitbucket gitlab google_code fogbugz git gitlab_project
|
|
`import_sources`
| Array of strings | no | Sources to allow project import from, possible values: "github bitbucket gitlab google_code fogbugz git gitlab_project
manifest
|
|
`koding_enabled`
| boolean | no | Enable Koding integration. Default is
`false`
. |
|
`koding_enabled`
| boolean | no | Enable Koding integration. Default is
`false`
. |
|
`koding_url`
| string | yes (if
`koding_enabled`
is
`true`
) | The Koding instance URL for integration. |
|
`koding_url`
| string | yes (if
`koding_enabled`
is
`true`
) | The Koding instance URL for integration. |
|
`max_artifacts_size`
| integer | no | Maximum artifacts size in MB |
|
`max_artifacts_size`
| integer | no | Maximum artifacts size in MB |
...
...
doc/user/project/import/img/manifest_status.png
0 → 100644
View file @
b42b3796
34.1 KB
doc/user/project/import/img/manifest_upload.png
0 → 100644
View file @
b42b3796
17 KB
doc/user/project/import/index.md
View file @
b42b3796
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
1.
[
From SVN
](
svn.md
)
1.
[
From SVN
](
svn.md
)
1.
[
From TFS
](
tfs.md
)
1.
[
From TFS
](
tfs.md
)
1.
[
From repo by URL
](
repo_by_url.md
)
1.
[
From repo by URL
](
repo_by_url.md
)
1.
[
By uploading a manifest file
](
manifest.md
)
In addition to the specific migration documentation above, you can import any
In addition to the specific migration documentation above, you can import any
Git repository via HTTP from the New Project page. Be aware that if the
Git repository via HTTP from the New Project page. Be aware that if the
...
...
doc/user/project/import/manifest.md
0 → 100644
View file @
b42b3796
# Import multiple repositories by uploading a manifest file
GitLab allows you to import all the required git repositories based on the
Android repository manifest file.
You can do it by following next steps:
1.
From your GitLab dashboard click
**New project**
1.
Switch to the
**Import project**
tab
1.
Click on the
**Manifest file**
button
1.
Provide GitLab with a manifest xml file
1.
Select a group you want to import to (you need to create a group first if you don't have one)
1.
Click
**Import projects**
1.
You will be redirected to the import status page with projects list based on manifest file
1.
Check the list and click 'Import all repositories' to start import.
![
Manifest upload
](
img/manifest_upload.png
)
![
Manifest status
](
img/manifest_status.png
)
### Manifest format
A manifest must be an XML file. There must be one
`remote`
tag with
`review`
attribute
that contains a URL to a git server. Each
`project`
tag must have
`name`
and
`path`
attribute.
GitLab will build URL to the repository by combining URL from
`remote`
tag with a project name.
A path attribute will be used to represent project path in GitLab system.
Below is a valid example of manifest file.
```
xml
<manifest>
<remote
review=
"https://android-review.googlesource.com/"
/>
<project
path=
"build/make"
name=
"platform/build"
/>
<project
path=
"build/blueprint"
name=
"platform/build/blueprint"
/>
</manifest>
```
As result next projects will be created:
| GitLab | Import URL |
|---|---|
| https://gitlab/YOUR_GROUP/build/make | https://android-review.googlesource.com/platform/build |
| https://gitlab/YOUR_GROUP/build/blueprint | https://android-review.googlesource.com/platform/build/blueprint |
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