My project consists of multiple git repositories. One main repository, and other helper repositories. In jenkins pipeline, I want to checkout scm:
all of them, but I am only interested in tracking changes, and polling from the main repository - others clutter the changelog and cause other infrastructure problems (it's a big project).
I thought about simply checking out remaining repositories in sh
blocks to skip "features" I don't want, but I'll have to duplicate config, and somehow pass credentials - generally I'd like pipelines to do the work for me.
Expected result:
checkout scm
does not cause changelog to appear, or cause polling from said repo down the line.
Is there a way to archive this using configuration, instead of hiding checkout logic from pipeline using sh
step?
Use the following code in Jenkinsfile:
checkout scm: scm, poll: false, changelog: false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With