Duplicate changelogs in jenkins pipeline script
<p>I am working on how to use the new Jenkins Pipeline Plugin with the <code>Jenkinsfile</code> in the scm of the project (we use GIT).</p>

<p>The job script is loaded from the SCM ('Pipeline script from SCM' option)
and in the <code>Jenkinsfile</code> script I do a <code>checkout scm</code>.</p>

<p>The problem is that the commits are duplicated. In the build directory, there is 2 <code>changelog.xml</code> with the same commits and so the changes view can be very messy :</p>

<pre><code>Summary

1. FNC71010 - Ajout des traductions au launcher (details)
Commit 5a676ee1448b72f1b99227e8832b01081aa1bc6d by thierry
The file was modified   Deploy_serveur/resources/config/trad.properties

Summary

1.FNC71010 - Ajout des traductions au launcher (details)
Commit 5a676ee1448b72f1b99227e8832b01081aa1bc6d by thierry
The file was modified   Deploy_serveur/resources/config/trad.properties
</code></pre>

<p>The problem occurs also with in the multibranch pipeline.</p>

<p>Here is the <code>Jenkinsfile</code> content :
</p>

<pre><code>#!groovy

node {
    stage 'initialisation'
    def repertoire = "directory"

    def pipeline
    dir(repertoire) {
        checkout scm
        pipeline = load 'pipeline.groovy'
    }
    pipeline.initialisation(repertoire)
    pipeline.build()
    pipeline.runTestsRapides()
    pipeline.copieResultats()
}
</code></pre>

<p>Am I doing something wrong ?</p>

<p>Jenkins version : 1.642.2 (docker)
Pipeline version : 1.15
Git plugin : 2.4.3</p>