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
f22d20e3
Commit
f22d20e3
authored
Jan 08, 2019
by
Drew Blessing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add troubleshooting steps to Jenkins documentation
parent
3ec3de90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
doc/integration/jenkins.md
doc/integration/jenkins.md
+24
-5
No files found.
doc/integration/jenkins.md
View file @
f22d20e3
...
@@ -60,15 +60,19 @@ Go to Manage Jenkins -> Configure System and scroll down to the 'GitLab' section
...
@@ -60,15 +60,19 @@ Go to Manage Jenkins -> Configure System and scroll down to the 'GitLab' section
Enter the GitLab server URL in the 'GitLab host URL' field and paste the API token
Enter the GitLab server URL in the 'GitLab host URL' field and paste the API token
copied earlier in the 'API Token' field.
copied earlier in the 'API Token' field.
For more information, see GitLab Plugin documentation about
[
Jenkins-to-GitLab authentication
](
https://github.com/jenkinsci/gitlab-plugin#jenkins-to-gitlab-authentication
)
![
Jenkins GitLab plugin configuration
](
jenkins_gitlab_plugin_config.png
)
![
Jenkins GitLab plugin configuration
](
jenkins_gitlab_plugin_config.png
)
## Configure a Jenkins project
## Configure a Jenkins project
Follow the GitLab Plugin documentation under the
Follow the GitLab Plugin documentation about
[
Jenkins Job Configuration
](
https://github.com/jenkinsci/gitlab-plugin#jenkins-job-configuration
)
.
[
Using it With a Job
](
https://github.com/jenkinsci/gitlab-plugin#using-it-with-a-job
)
heading. You
*do not*
need to complete instructions under the 'GitLab
NOTE:
**Note:**
Configuration (>= 8.0)'. Be sure to check the 'Use GitLab CI features' checkbox
Be sure to include the steps about
[
Build status configuration
](
https://github.com/jenkinsci/gitlab-plugin#build-status-configuration
)
.
as described under the 'GitLab Configuration (>= 8.1)'.
The 'Publish build status to GitLab' post-build step is required to view
Jenkins build status in GitLab Merge Requests.
## Configure a GitLab project
## Configure a GitLab project
...
@@ -108,3 +112,18 @@ All steps are implemented using AJAX requests on the merge request page.
...
@@ -108,3 +112,18 @@ All steps are implemented using AJAX requests on the merge request page.
2.
Your project service will do a (JSON) query to a URL of the CI tool with the SHA1 of the commit.
2.
Your project service will do a (JSON) query to a URL of the CI tool with the SHA1 of the commit.
3.
The project service builds this URL and payload based on project service settings and knowledge of the CI tool.
3.
The project service builds this URL and payload based on project service settings and knowledge of the CI tool.
4.
The response is parsed to give a response in GitLab (success/failed/pending).
4.
The response is parsed to give a response in GitLab (success/failed/pending).
## Troubleshooting
### Error in merge requests - "Could not connect to the CI server"
This integration relies on Jenkins reporting the build status back to GitLab via
the
[
Commit Status API
](
../api/commits.md#commit-status
)
.
The error 'Could not connect to the CI server' usually means that GitLab did not
receive a build status update via the API. Either Jenkins was not properly
configured or there was an error reporting the status via the API.
1.
[
Configure the Jenkins server
](
#configure-the-jenkins-server
)
for GitLab API access
2.
[
Configure a Jenkins project
](
#configure-a-jenkins-project
)
, including the
'Publish build status to GitLab' post-build action.
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