5

我想问有没有办法通过使用 Jenkins 管道 REST API 来查询运行时构建步骤?我参考了这个链接https://github.com/jenkinsci/pipeline-stage-view-plugin/tree/master/rest-api似乎我无法获得我配置的运行时构建步骤命令行詹金斯管道工作。

有什么建议么?

4

1 回答 1

-1

It seems there is no possibility to get this information via the REST API. I found a solution somewhere. With

http://Serverurl/job/jobname/config.xml

you can download the config file and parse the XML. Doing it with PowerShell and it's working fine.

于 2020-12-01T15:17:08.643 回答