基本入门

官方文档

https://jenkins.io/doc/

jenkins的gitlab插件

https://github.com/jenkinsci/gitlab-plugin

15个必知插件

https://devops.com/15-must-jenkins-plugins-increase-productivity/

结合git,pylint

配置源码管理git

配置构建触发器gitlab

很重要的提醒,记得在gitlab项目中添加jenkins用户,赋予权限

构建

不登陆就使用token触发构建的方法(安装build authorization token root plugin)

我使用token去触发构建,提示如下错误 Permission you need to have (but didn’t): hudson.model.Hudson.Read 或者

curl -u user:password –url “要触发的带者token参数的url”

HTML Publisher plugin	 完成
TestNG Results Plugin	 完成
Script Security Plugin	 script-security plugin is already installed. Jenkins needs to be restarted for the update to take effect
Structs Plugin	 structs plugin is already installed. Jenkins needs to be restarted for the update to take effect
Pipeline: Step API	 workflow-step-api plugin is already installed. Jenkins needs to be restarted for the update to take effect
Allure Jenkins Plugin	 完成
Build Authorization Token Root Plugin