|
7 | 7 |
|
8 | 8 | ## Gitlab setup |
9 | 9 |
|
10 | | - - Login with an Owner (or Adminstrator) of a Project, go to "Projet settings", "Web hooks", |
11 | | - add a Push hook with Mantis url and Mantis Source Integration plugin "API Key": |
12 | | - http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881 |
13 | | - - Create a user with (at least) read access to the repository. For a public repository, any user would work. |
14 | | - Login with this user, go to "Profile settings", "Account", and copy the "Private token". |
| 10 | + - Login with an Owner (or Administrator) of a Project, go to *Settings -> Integrations* and |
| 11 | + add a Push hook to Web Hooks section with Mantis URL and Mantis Source Integration plugin "API Key": |
| 12 | + `http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881` |
| 13 | + - Go to your user *Settings -> Access Token -> Personal Access Tokens* and create a token with at least "api" |
| 14 | + access. You will need it as "hub_app_secret" in Mantis configuration. |
15 | 15 |
|
16 | 16 | ## Mantis repository setup |
17 | 17 |
|
18 | 18 | - In Mantis administration, create a repository with a unique name and of type "Gitlab". |
19 | 19 | - URL field is not used by the plugin. |
20 | 20 | - Gitlab config fields are: |
21 | 21 | - hub_root: root url of the Gitlab webserver, required to access Web API |
22 | | - - 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) |
| 22 | + - hub_repoid: id of the Gitlab project. Should be auto-filled if reponame is valid and readable for the user. |
23 | 23 | - hub_reponame: full name of the project in the form "group-namespace/project-name" |
24 | 24 | - hub_app_secret: the "Private token" of a user with at least a read access to the project. |
25 | 25 | - master_branch: use '*' or a list of branches to track |
|
0 commit comments