简体   繁体   中英

Can I get the build info of the build which retriggerd the current job?

I have a job hooked to a gerrit server. I've also got the gerrit trigger plugin installed.

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. This is one way: https://medium.com/faun/how-to-get-jenkins-build-job-details-b8c918087030

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM