2021-01-29 00:20:46 +05:30
---
2021-02-22 17:27:13 +05:30
stage: Create
group: Ecosystem
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2019-07-31 22:56:46 +05:30
# Jenkins CI (deprecated) service
2021-02-22 17:27:13 +05:30
NOTE:
2020-10-24 23:57:45 +05:30
In GitLab 8.3, Jenkins integration using the
2019-07-31 22:56:46 +05:30
[GitLab Hook Plugin ](https://wiki.jenkins.io/display/JENKINS/GitLab+Hook+Plugin )
was deprecated in favor of the
[GitLab Plugin ](https://wiki.jenkins.io/display/JENKINS/GitLab+Plugin ).
Please use documentation for the new [Jenkins CI service ](jenkins.md ).
2021-02-22 17:27:13 +05:30
NOTE:
2020-05-24 23:13:21 +05:30
This service was [removed in v13.0 ](https://gitlab.com/gitlab-org/gitlab/-/issues/1600 )
2019-07-31 22:56:46 +05:30
Integration includes:
2021-02-22 17:27:13 +05:30
- Trigger Jenkins build after push to repository
2019-09-30 21:07:59 +05:30
- Show build status on Merge Request page
2019-07-31 22:56:46 +05:30
Requirements:
2019-09-30 21:07:59 +05:30
- [Jenkins GitLab Hook plugin ](https://wiki.jenkins.io/display/JENKINS/GitLab+Hook+Plugin )
2021-02-22 17:27:13 +05:30
- Git clone access for Jenkins from GitLab repository (via SSH key)
2019-07-31 22:56:46 +05:30
## Jenkins
1. Install [GitLab Hook plugin ](https://wiki.jenkins.io/display/JENKINS/GitLab+Hook+Plugin )
2019-12-04 20:38:33 +05:30
1. Set up Jenkins project
2019-07-31 22:56:46 +05:30
![screen ](img/jenkins_project.png )
## GitLab
In GitLab, perform the following steps.
### Read access to repository
Jenkins needs read access to the GitLab repository. We already specified a
private key to use in Jenkins, now we need to add a public one to the GitLab
2021-02-22 17:27:13 +05:30
project. For that case we need a Deploy key. Read the documentation on
2019-07-31 22:56:46 +05:30
[how to set up a Deploy key ](../ssh/README.md#deploy-keys ).
### Jenkins service
Now navigate to GitLab services page and activate Jenkins
![screen ](img/jenkins_gitlab_service.png )
2021-02-22 17:27:13 +05:30
Done! Now when you push to GitLab - it creates a build for Jenkins, and you can view the merge request build status with a link to the Jenkins build.
2019-07-31 22:56:46 +05:30
### Multi-project Configuration
The GitLab Hook plugin in Jenkins supports the automatic creation of a project
2021-02-22 17:27:13 +05:30
for each feature branch. After configuration GitLab triggers feature branch
builds and a corresponding project is created in Jenkins.
2019-07-31 22:56:46 +05:30
Configure the GitLab Hook plugin in Jenkins. Go to 'Manage Jenkins' and then
'Configure System'. Find the 'GitLab Web Hook' section and configure as shown below.