Skip to content
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

Need to document GitLab -> Jenkins authentication setup #418

Closed
omehegan opened this issue Sep 14, 2016 · 10 comments
Closed

Need to document GitLab -> Jenkins authentication setup #418

omehegan opened this issue Sep 14, 2016 · 10 comments

Comments

@omehegan
Copy link
Member

We need to document how to set up the optional authentication between GitLab and Jenkins for triggering jobs.

@coder-hugo
Copy link
Contributor

Btw. we should start moving the documentation from the full-blown README where nobody finds what he's looking for to the wiki. There we can create pages for different use-cases which should make it easy to find the thing you are looking for.

@omehegan
Copy link
Member Author

I agree. I can try to work on that.

@coder-hugo
Copy link
Contributor

Maybe we should also add them screenshots to the documentation. IMHO it's easier to tell somebody what he needs to click or where he has to enter something if you show him a picture of the UI.

@omehegan
Copy link
Member Author

Note to self: the way to configure this is:

  1. Jenkins global configuration -> require authorization for /project endpoint
  2. Copy userid and API key for a Jenkins user who has authorization to run the job
  3. Create a webhook on GitLab to trigger the job, and use HTTP basic auth: http://user:apikey@gitlab/project/jobname

@leoniscsem
Copy link

Great! The user:apikey was the missing configuration step which drove me nuts. Since I am just working on our internal documentation I could / would like to contribute to the wiki. I am nearly done with the doc, just needs English translation. Have you decided on the wiki pages already? Our use case is a Jenkins behind nginx reverse proxy, with authentication / without anonymous read permissions (no public projects), GitLab 8 (most recent).

@coder-hugo
Copy link
Contributor

@omehegan btw. with 59ee882 I added the functionality to configure secret tokens per Jenkins job which then can be configured in the corresponding GitLab web hook in the Secret Token field.

@jmcgeheeiv
Copy link
Contributor

jmcgeheeiv commented Sep 30, 2016

I did some work on clarifying the documentation in PR #414. You might give that a read.

@omehegan
Copy link
Member Author

I should also look at #375 (comment) when updating this doc.

@Ian-T-Price
Copy link

Not sure if this is a documentation issue or a bug:

https://gitlab.com/Ian-T-Price - this fails to connect

http://gitlab.com/Ian-T-Price - this works

Given that the first one is the correct URL and that HTTPS is becoming / has become the standard, then the first line should connect.

@omehegan
Copy link
Member Author

After 18 months, this is finally documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants