Skip to content

Update Gitlab integration readme #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ MantisBT version | Tags | Branch | Notes
relevant plugin extension:

* [SourceGithub](docs/CONFIGURING.SourceGithub.md)
* [SourceGitlab](SourceGitlab/README.md)
* [SourceViewVC](docs/CONFIGURING.SourceViewVC.md)
* [SourceSVN](docs/CONFIGURING.SourceSVN.md)

Expand Down
12 changes: 6 additions & 6 deletions SourceGitlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@

## Gitlab setup

- Login with an Owner (or Adminstrator) of a Project, go to "Projet settings", "Web hooks",
add a Push hook with Mantis url and Mantis Source Integration plugin "API Key":
http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881
- Create a user with (at least) read access to the repository. For a public repository, any user would work.
Login with this user, go to "Profile settings", "Account", and copy the "Private token".
- Login with an Owner (or Administrator) of a Project, go to *Settings -> Integrations* and
add a Push hook to Web Hooks section with Mantis URL and Mantis Source Integration plugin "API Key":
`http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881`
- Go to your user *Settings -> Access Token -> Personal Access Tokens* and create a token with at least "api"
access. You will need it as "hub_app_secret" in Mantis configuration.

## Mantis repository setup

- In Mantis administration, create a repository with a unique name and of type "Gitlab".
- URL field is not used by the plugin.
- Gitlab config fields are:
- hub_root: root url of the Gitlab webserver, required to access Web API
- hub_repoid: id of the Gitlab projet, starting from 1 for the first created project (auto-filed if reponame is valid and readable for the user)
- hub_repoid: id of the Gitlab project. Should be auto-filled if reponame is valid and readable for the user.
- hub_reponame: full name of the project in the form "group-namespace/project-name"
- hub_app_secret: the "Private token" of a user with at least a read access to the project.
- master_branch: use '*' or a list of branches to track
Expand Down