【Jenkins学习】Jenkins 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
 
 
 
 
 
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 --data-urlencode json='"{\"parameter\": [{\"name\": \”env\", \"value\": \”test\"}]}”'
 
posted @ 2022-01-09 13:46  gtea  阅读(277)  评论(0编辑  收藏  举报