Jenkins + gitlab integrated automatically construct

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
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
1, Configure Hook Scripts trigger
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
point trigger on the configuration finished

2, back gitlab interface configuration
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
Jenkins + gitlab integrated automatically construct
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
Jenkins + gitlab integrated automatically construct

Guess you like

Origin blog.51cto.com/14227204/2481646