What URL will get the status code (result) of the last Jenkins job?

前端 未结 1 1672
说谎
说谎 2021-02-13 04:06

I am wondering if anyone knows what URL is required (as a GET or POST) that will get the status code (result) of the last Jenkins job (when the build# is not known by the clien

1条回答
  •  礼貌的吻别
    2021-02-13 04:21

    You can use the symbolic descriptor lastBuild:

    http://localhost/jenkins/job//lastBuild/api/xml
    

    The result element contains a string describing the outcome of the build.

    0 讨论(0)
提交回复
热议问题