Jenkins - Get last completed build status

后端 未结 2 905
半阙折子戏
半阙折子戏 2020-12-23 11:25

I know I can call localhost/job/RSpec/lastBuild/api/json to get the status of the lastest Jenkins build. However, since our build runs very long (a couple hours

2条回答
  •  离开以前
    2020-12-23 12:09

    To get the last successful build number:

    curl --user  https:///job//api/xml?xpath=/*/lastStableBuild/number
    

提交回复
热议问题