I have a jenkins job to run builds against multiple repositories (one repo for each build). And from time to time, we see git tries to checkout revision from some old repository. We already use "Wipe out repository & force clone" Do you know how can we do to fix it? The partial groovy script of the job is posted below. (seemly the branches spec is not useful). Thanks a lot. --Yongxiang
scm { git { remote { url('$REPO_URL') } branches(':(master|main)') extensions { wipeOutWorkspace() } // buildSingleRevisionOnly() is Dynamic DSL, which is not supported // by our DSL linter. This configure block is meant to be the same // as `extensions { buildSingleRevisionOnly() }`. configure { scm -> scm / extensions << { 'hudson.plugins.git.extensions.impl.BuildSingleRevisionOnly'() } } } } parameters { stringParam('REPO_URL', '', 'URL to the repository') } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7b7cc327-d642-4a6a-8156-7e8adbfc6003n%40googlegroups.com.