-
According to the structure should be written in a section, but at the time it consumed too much above or summarize.
- Gitlab configured Well, Jenkins configured, then we will link the two. Developers push when implementing the code, you will notice Jenkins and Gitlab Hook Plugins
First, you need to install two plug-ins associated with webHook in jenkins in: ruby_runtime (Hook plug-dependent) and gitlab Web Hook
download URL: http: // updates. jenkins-ci.org/download/plugins/
specific download plug-ins:
Ruby-runtime.hpi
gitlab-plugin.hpi
groovy.hpi
gitlab-hook.hpi - Or here opened, Jenkins after beginning the installation is completed online will certainly be a large area of the installation fails, you need to install their own large number of plug-ins, follow the prompts also need their own adapted version so we need to do is upload the plugin installed special way to understand :
System Management - "plug-in management -" Advanced - "to upload the plugin
of course on condition that we have downloaded the plug-in plug-in center- Back to the topic
and then set gitlabHook in Jenkins: In the Jenkins home page, click on:
System Management - ": System Settings
After setting the Git Web Hook
Thereafter, Jenkins build reconfiguration trigger, to be configured as in FIG.
Note WebHook copy of url !!
so, Jenkins ended up here on the configuration. below. Webhook also need to configure in GitLab, the specific configuration is as follows.
Here to do three things: url input and Jenkins ties; check the Trigger option to remove the Push events check ENable SSL verifivation items. After that, click the ADD WebHook button, as shown
click Test in Push event appeared successful copywriter, it indicates webHook configuration was successful.
Note that there are also bug, might report 403 errors, but if you set administrator privileges on the matter of the
link to the article:
https://blog.csdn.net/weixin_43404791/article/details/105295597
last operation by git push code into gitlab to observe whether it will build jenkins,
if so, then the continuous integration of functions is complete! ! - Gitlab configured Well, Jenkins configured, then we will link the two. Developers push when implementing the code, you will notice Jenkins and Gitlab Hook Plugins
Use webhook achieve continuous integration service
Guess you like
Origin blog.csdn.net/weixin_43404791/article/details/105349680
Recommended
Ranking