integrated PR https://github.com/lanfeust69/scm-sync-configuration-plugin/commit/f24eaf98ba663f3ea7d54e26ac325fd3fb89df74
Merge branch 'JENKINS-17545', changing implementation fix for JENKINS-17545 by using lanfeust69 suggestion in PR #15