Jenkins: how to save changelog for build

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 17:19:23

Here is XPath code that can get you the changeset for a given build id via Jenkins API:

http://[jenkins_host]/api/xml?depth=2&xpath=//build/id[text()='${BUILD_ID}']/../changeSet

(Put actual build id instead of ${BUILD_ID}). This can be used by a script (say, a Pyhon script utilizing Python Jenkins) that collects changeset results in the end of every build and stores them in a temp locations. After a successful build the script can collect all results stored since the previous build and process them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!