Jenkins: Only update changelog once when git cloning
This commit is contained in:
5
.ci/Jenkinsfile
vendored
5
.ci/Jenkinsfile
vendored
@@ -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]]]
|
||||
|
Reference in New Issue
Block a user