[英]Can I get the build info of the build which retriggerd the current job?
I have a job hooked to a gerrit server.我有一份与 gerrit 服务器挂钩的工作。 I've also got the gerrit trigger plugin installed.
我还安装了 gerrit 触发器插件。
When I press "retrigger"/"retrigger all", I want the retriggered job to get the build number of the job which retriggered it.当我按下“重新触发”/“全部重新触发”时,我希望重新触发的作业能够获得重新触发它的作业的内部版本号。
Any ideas on how to do this?关于如何做到这一点的任何想法? Thanks
谢谢
If you retrigger a job if you check in the JOB info, you will see jenkins track that.如果您在检查作业信息时重新触发作业,您将看到 jenkins 跟踪该作业。 This is one way: https://medium.com/faun/how-to-get-jenkins-build-job-details-b8c918087030
这是一种方式: https://medium.com/faun/how-to-get-jenkins-build-job-details-b8c918087030
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.