简体   繁体   中英

Trigger a Jenkins job after commit on different repository

I have a pipeline job on Jenkins which run tests and it's linked to repository 'A', I want to trigger this job once in repository 'B' a commit done. Is it possible?

You can use generic-webhook-trigger-plugin and git

  • Set webhook on Repository B using generic-webhook-trigger-plugin
  • Set trigger on commit on Repository B
  • Checkout Branch on Repository A using Git
  • Run test in Repository A

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