在詹金斯声明管道中使用ReadyAml的正确方法是什么
我看到了如何从脚本詹金斯读取yaml文件的示例。我正在寻找一个示例,说明如何正确阅读jenkins声明管道中的yaml(使用readyaml?)
I saw examples of how to read a YAML file from a scripted Jenkins. I am looking for an example of how to properly read YAML (using readYaml?) in Jenkins declarative pipeline
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文档: https://www.jenkins.io/doc/pipeline/pipeline/steps/pipeline-utility-steps/#readyaml-wreadyaml-read-yaml-read-yaml-from-from-from-from-from-in-the-work-work-work-workspace-or-or-text
在一行中,您可以使用
readyAml
这样:您应该有一个可以从:
The documentation: https://www.jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#readyaml-read-yaml-from-files-in-the-workspace-or-text
In a single line, you can use
readYaml
like this:and you should have a yaml object you can extract data from, such as: