From 15f9d87b5c83f613ad2a4f162cd8c081d3b415e2 Mon Sep 17 00:00:00 2001 From: richardg867 Date: Thu, 28 Jul 2022 13:59:27 -0300 Subject: [PATCH] Jenkins: Only update changelog once when git cloning --- .ci/Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index e6f717a3d..27cda4161 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -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]]]