Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51641

Duplicate commits displayed on Pipeline build when using "Poll SCM" and "Pipeline script from SCM"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.107.3, Pipeline 2.5, Pipeline: SCM Step 2.6, Team Foundation Server 5.133.0

      • Pipeline script has checkout step in it, checking out from TFS: 
        • checkout([changelog: false, $class: 'TeamFoundationServerScm', credentialsConfigurer: [$class: 'AutomaticCredentialsConfigurer'], projectPath: '$/pathToProject/', serverUrl: 'https://serverUrl/', useOverwrite: true, useUpdate: false, userName: 'usrName', workspaceName: 'Hudson-${JOB_NAME}-${NODE_NAME}'])

       

      • Pipeline job has Poll SCM enabled
      • Pipeline job set up to use Pipeline script from SCM

       

      Upon Poll SCM seeing a changeset, builds are correctly triggered. However, commits are shown three times each (see attached image), which messes up the logs. I cannot find a way around this; changelog is set to false in the checkout. 

       

            redsolo redsolo
            whatsdevops Angelo Loria
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: