Jenkins中的Rest API获取管道(阶段)信息 [英] Rest API in Jenkins to get the Pipeline (stages) information
本文介绍了Jenkins中的Rest API获取管道(阶段)信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究通过Rest API在Jenkins中获取管道(阶段)信息的选项.我们在Jenkins上安装了管道插件.
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.
高度赞赏任何帮助.
推荐答案
您可以使用此端点获取管道运行:
You can use this endpoint to get the pipeline runs:
每个运行Blob都应包含相应的阶段,因此您可以提取最近一次运行的阶段.
Each run blob should contain the corresponding stages, so you can extract the stages of the latest run.
这篇关于Jenkins中的Rest API获取管道(阶段)信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文