【Jenkins学习】Jenkins API
http://10.12.77.107:8080//user/admin/configure 生成token
https://blog.csdn.net/mmh19891113/article/details/79106222/ curl
https://blog.csdn.net/mmh19891113/article/details/79106222/
https://www.cnblogs.com/fengzhilaoling/articles/12705003.html (&&&)
https://blog.csdn.net/weixin_41585557/article/details/103977692 例子
https://www.jenkins.io/doc/book/using/remote-access-api/ (官方文档)
wget -q --auth-no-challenge --user admin --password Admin123 --output-document - 'http://10.12.77.107:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)'
e7bd00b587d8b2dc2129c8dce6551c7bf12a31626817eaf5f4745c23b3d6506f
curl -n -X POST -H d9d2f2882ce9f63670a5d985f383ddf797781840ba8f48baae823c8dc206ef63C0http://10.12.77.107:8080/job/Retail_Luban_NOT_TW/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
curl -n -X POST http://10.12.77.107:8080/view/Retail/job/Retail_Luban_NOT_TW_Xdist/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
http://10.12.77.107:8080/view/Retail/job/Retail_Luban_NOT_TW_Xdist/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
http://10.12.77.107:8080/view/Retail/job/Retail_Luban_NOT_TW/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
curl --user admin:Admin123 --data build http://10.12.77.107:8080/job/Retail_Luban_NOT_TW/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
curl --user admin:Admin123 --data build http://10.12.77.107:8080/view/Retail/job/Retail_Luban_NOT_TW_Xdist/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
curl --silent http://10.12.77.107:8080/job/Retail_Luban_NOT_TW/lastBuild/api/json
curl -n -X GET -H d9d2f2882ce9f63670a5d985f383ddf797781840ba8f48baae823c8dc206ef63C0 http://10.12.77.107:8080/job/Retail_Luban_NOT_TW/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
curl -n -X GET http://10.12.77.107:8080/job/Retail_Luban_NOT_TW/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7
组合参数版
curl -n -X GET http://10.12.77.107:8080/job/Retail_Luban_NOT_TW/buildWithParameters?token=1185c5474a3a1db477fcaeb3998a963ca7 --data-urlencode json='"{\"parameter\": [{\"name\": \”env\", \"value\": \”test\"}]}”'