1、curl http://199.168.299.99:8080/job/send_message/lastBuild/api/json --user administrator:1234  获取jobName为send_message的最后一次构建信息,指定某次构建可以将lastBuild改成相应数字

2、curl http://199.168.299.99:8080/job/send_message/lastBuild/consoleText --user administrator:1234 获取jobName为send_message的最后一次构建的输出信息,博主是用来解析Log,判断redis或者mongoDB有没有启动成功,因为redis或mongoDB或启动了的服务是不会有构建结果的,状态永远是building。

posted on 2017-09-29 15:20  Boom__Clap  阅读(305)  评论(0编辑  收藏  举报