cgumpert created page: jenkins setup authored by Christian Gumpert's avatar Christian Gumpert
......@@ -56,6 +56,7 @@ add the following line to the list of rules in <tt>/etc/sysconfig/iptables</tt><
+ API Token: "some text" with the "secret" set to the API token of the GitLab user (which can be found under "Profile settings > Account" in GitLab)
1. Add your Jenkins jobs configured as described [here](https://github.com/jenkinsci/gitlab-plugin#jenkins-job-configuration).
1. Allow other users to see the build logfiles. This is done by checking "Allow anonymous read access" under "Manage Jenkins > Configure Global Security".
1. If you want to pass parameters to subsequent jenkins jobs without having to specify them all explicity in the job configuration, one needs to add <tt>-Dhudson.model.ParametersAction.keepUndefinedParameters=true</tt> to <tt>JENKINS_JAVA_OPTIONS</tt> and <tt>JENKINS_ARGS</tt> in <tt>/etc/sysconfig/jenkins</tt>.
1. Configure the GitLab project
1. In your GitLab project go to "Settings > Web Hooks"
1. Add a hook to <tt>http://JENKINS_URL/project/PROJECT_NAME</tt> for push and merge requests where <tt>JENKINS_URL</t> is "\<hostname of VM\>:8080" and <tt>PROJECT_NAME</tt> is the name of the Jenkins job.
\ No newline at end of file