Jenkins + after gitlab integration, achieve function is to create the code written submission to the gitlab, when the start push to gitlab, jenkins automatically help us build immediately
First, install hook scripts gitlab
Note: jenkins want to achieve no matter what features need to install the plug! !
Click: System Management Plug-In Manager == >> == >> optional plug
1, Configure Hook Scripts trigger
point trigger on the configuration finished
2, back gitlab interface configuration
down our back end gitlab upload test code
[root@jenkins test1]# ls -a
. .. .git README.md reports src test222.txt tests
[root@jenkins test1]# echo "aaa" >> test2.txt
[root@jenkins test1]# git add *
[root@jenkins test1]# git commit -m "test auto"
[master 6b3cff7] test auto
1 file changed, 1 insertion(+)
create mode 100644 test2.txt
[root@jenkins test1]# git push origin master
Jenkins returned to the web page can be seen already automatically build