Rest API in Jenkins to get the Pipeline (stages) information

可紊 提交于 2020-07-20 08:42:04

问题


I'm exploring the options to get the pipeline (stages) information in Jenkins through Rest API. We had a pipeline plug-in installed on Jenkins.

Any help on same is highly appreciated.


回答1:


You can use this endpoint to get the pipeline runs:

https://github.com/jenkinsci/pipeline-stage-view-plugin/tree/master/rest-api#get-jobjob-namewfapiruns

Each run blob should contain the corresponding stages, so you can extract the stages of the latest run.



来源:https://stackoverflow.com/questions/50594486/rest-api-in-jenkins-to-get-the-pipeline-stages-information

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