獲取某一個(gè)構(gòu)建版本號(hào)為6的構(gòu)建結(jié)果:
String json = "curl
http://192.168.165.214:8081/job/pro-ljj_mir-ljj/6/api/xml --user admin:123456 ";
獲取最后一次構(gòu)建的構(gòu)建結(jié)果:
String json = "curl
http://192.168.165.214:8081/job/pro-ljj_mir-ljj/lastBuild/api/xml --user admin:123456 ";
獲取最后一次構(gòu)建的版本號(hào):
String json = "curl http://192.168.165.214:8081/job/laijinjie-pro_laijinjie-mir/lastBuild/buildNumber --user admin:123456 ";
獲取某個(gè)項(xiàng)目所以構(gòu)建版本號(hào)的結(jié)果;
String json = "curl
http://192.168.165.214:8081/job/pro-ljj_mir-ljj/api/xml
--user admin:123456 ";
以上
pro-ljj_mir-ljj為項(xiàng)目名稱,最后的是賬號(hào)密碼。
|