Jenkins: Also make poll only true once when cloning
This commit is contained in:
6
.ci/Jenkinsfile
vendored
6
.ci/Jenkinsfile
vendored
@@ -103,9 +103,9 @@ def gitClone(repository, branch) {
|
|||||||
if (env.GIT_STASHED != 'true' || env.NODE_NAME != 'debian.citadel') {
|
if (env.GIT_STASHED != 'true' || env.NODE_NAME != 'debian.citadel') {
|
||||||
/* Catch network issues in clone. */
|
/* Catch network issues in clone. */
|
||||||
try {
|
try {
|
||||||
/* Perform clone/checkout, making sure to update the changelog only once
|
/* Perform clone/checkout, making sure to set poll and changelog only
|
||||||
to avoid inaccurate entries from new commits pushed inbetween clones. */
|
once to avoid interference from new commits pushed inbetween clones. */
|
||||||
def scmVars = checkout(poll: true,
|
def scmVars = checkout(poll: env.GIT_STASHED != 'true',
|
||||||
changelog: env.GIT_STASHED != 'true',
|
changelog: env.GIT_STASHED != 'true',
|
||||||
scm: [$class: 'GitSCM',
|
scm: [$class: 'GitSCM',
|
||||||
branches: [[name: branch]],
|
branches: [[name: branch]],
|
||||||
|
Reference in New Issue
Block a user