简体   繁体   English

我可以获得重新触发当前工作的构建的构建信息吗?

[英]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.

相关问题 如何获得或通过其他职位建立持续时间到当前职位 - How to get or pass other job build duration to current job 我可以从参数化的Jenkins构建作业中获取参数吗? - Can I get parameters back from a parameterized Jenkins build job? Jenkins Job DSL 在 postBuildScripts shell 中获取当前构建结果 - Jenkins Job DSL get current build result in postBuildScripts shell 如何在“构建后操作”中获取 Jenkins 作业的构建日志的内容? - How can I get the contents of a Jenkins job's Build Log in "Post-Build Actions"? 在 Jenkins 管道中,如何获取在当前构建和上次成功构建之间更改的文件? - In a Jenkins pipeline, how can I get the files that changed between the current build and last successful build? 如何使用groovy脚本获取jenkins中特定作业的所有构建号? - How can I get all build numbers of particular job in jenkins using groovy script? Jenkins 管道 groovy:如何获得另一个作业构建的工作区 - Jenkins pipeline groovy:how can I get the workspace of another job build jenkins 管道捕获失败并行构建的 build_job 信息 - jenkins pipeline catch build_job info for a failed parallel build 如何在Jenkins上配置Maven构建作业以告诉SonarQube构建作业的URL? - How can I configure Maven build job on Jenkins to tell SonarQube the build job's URL? 如何获取当前构建已从阶段重新启动的构建 ID? - How to get an id of build from which current build has restarted from stage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM