jenkins自动从git上拉取代码构建
pipeline from gitee/gitlab/github
1.generate ssh-keys-pairs
ssh-keygen -t rsa
~/.ssh/
id_rsa.pub
id_rsa
2.repository user add ssh-key(pub)
pass
3.jenkins add stick
#create job from pipeline
pipeline script from scm
commit auto build
jekins-plugin
- gitlab
- gitlab hook //未清楚功能
- gitlab authentication
add creadentials
- ssh or user/passwd or gitlab-secret-token
#jekins-jobs pipeline
#jenkins
构建触发-->build when a change is pushed to gitlab
url + secret-token
#gitlab
repository
settings->integrations-settings // url/hooks
add url+secret-token testing