Jenkins: Only update changelog once when git cloning

This commit is contained in:
richardg867
2022-07-28 13:59:27 -03:00
committed by GitHub
parent 826d9cdf1c
commit 15f9d87b5c

5
.ci/Jenkinsfile vendored
View File

@@ -100,9 +100,10 @@ def gitClone(repository, branch) {
/* Use stashes to pass the repository around debian.citadel, as it's known to be faster than git clone there. */
if (env.NODE_NAME != 'debian.citadel' || env.GIT_STASHED != 'true') {
/* Perform clone/checkout. */
/* Perform clone/checkout, making sure to update the changelog only once to
avoid inaccurate entries caused by new commits pushed inbetween clones. */
def scmVars = checkout poll: true,
changelog: true,
changelog: env.GIT_STASHED != 'true',
scm: [$class: 'GitSCM',
branches: [[name: branch]],
userRemoteConfigs: [[url: repository]]]