Enable tags mirroring in one-way git mirror pipelines
Change-Id: Ia32f22c6cc5fa14b12b67de42ed818c21348cfdf
diff --git a/git-mirror-pipeline.groovy b/git-mirror-pipeline.groovy
index b58358b..45536d0 100644
--- a/git-mirror-pipeline.groovy
+++ b/git-mirror-pipeline.groovy
@@ -13,7 +13,7 @@
checkout changelog: true, poll: true,
scm: [$class: 'GitSCM', branches: pollBranches, doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: CREDENTIALS_ID, url: SOURCE_URL]]]
- git.mirrorGit(SOURCE_URL, TARGET_URL, CREDENTIALS_ID, BRANCHES)
+ git.mirrorGit(SOURCE_URL, TARGET_URL, CREDENTIALS_ID, BRANCHES, true)
}
} catch (Throwable e) {
// If there was an error or exception thrown, the build failed