现在的情况是可以用jenkins API来构建项目,按这个方式:http://xxxxxxx/job/jobname/build?token=xxxxxxx
我的项目名称为sonar。 输入这个链接就能构建项目了http://localhost:8080/job/soanr/build?token=5c700490466b9d151
试了一下http://localhost:8080/job/soanr/getlastbuild?token=5c700490466b9d151 ,没有得到构建信息,求解大神,应该怎么写。
http://localhost:8080/job/soanr/getlastbuild/api/json 试试?
这里不是有构建信息吗?