例:

curl -v -XPOST -u admin:password

http://172.0.0.0:8080/job/test/build/api/json

 

cmd直接执行上面的命令也可以执行触发构建

 

token的添加

主页-用户列表-点击对应账号-设置