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"

    • 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. 

       

          [JENKINS-51641] Duplicate commits displayed on Pipeline build when using "Poll SCM" and "Pipeline script from SCM"

          Angelo Loria created issue -
          Angelo Loria made changes -
          Attachment New: jenkinsCommitPage.png [ 42757 ]
          Vincent Latombe made changes -
          Component/s Original: pollscm-plugin [ 17336 ]
          Vincent Latombe made changes -
          Assignee Original: Vincent Latombe [ vlatombe ] New: redsolo [ redsolo ]
          jang hyemi (Inactive) made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Component/s New: workflow-job-plugin [ 21716 ]
          Component/s Original: pipeline [ 21692 ]
          Jack Bradach made changes -
          Component/s New: p4-plugin [ 19224 ]

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

              Created:
              Updated: