1 jenkins 安装插件 Build Authorization Token Root Plugin
2 jenkins创建用户和api
3 设置项目的触发器,令牌是随意写的
4 拼写url
http://用户名:用户[email protected]/jenkins/view/test/job/test//build?token=触发器的令牌
我的
http://admin:[email protected]/jenkins/view/test/job/test//build?token=111ee359d1a61b1fa84ead4a821a1e3610
5 jenkins开启匿名
测试 curl http://admin:[email protected]/jenkins/view/test/job/test//build?token=111ee359d1a61b1fa84ead4a821a1e3610
6 bitbucket设置 url 是写的 http://admin:[email protected]/jenkins/view/test/job/test//build?token=111ee359d1a61b1fa84ead4a821a1e3610,名字随意
7 提交代码,发现jenkins 进行了发布
标签:bitbucket,http,cn,token,build,自动化,test,jenkins From: https://www.cnblogs.com/lulin9501/p/17635089.html