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

35 views
Skip to first unread message

aloria@haworthmedia.com (JIRA)

unread,
May 31, 2018, 1:01:01 PM5/31/18
to jenkinsc...@googlegroups.com
Angelo Loria created an issue
 
Jenkins / Bug JENKINS-51641
Duplicate commits displayed on Pipeline build when using "Poll SCM" and "Pipeline script from SCM"
Issue Type: Bug Bug
Assignee: Vincent Latombe
Attachments: jenkinsCommit.png
Components: pipeline, pollscm-plugin, tfs-plugin
Created: 2018-05-31 17:00
Environment: Jenkins 2.107.3, Pipeline 2.5, Pipeline: SCM Step 2.6, Team Foundation Server 5.133.0
Priority: Minor Minor
Reporter: Angelo Loria
  • 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. 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

aloria@haworthmedia.com (JIRA)

unread,
May 31, 2018, 1:03:02 PM5/31/18
to jenkinsc...@googlegroups.com

vincent@latombe.net (JIRA)

unread,
Jun 3, 2018, 2:55:03 AM6/3/18
to jenkinsc...@googlegroups.com

vincent@latombe.net (JIRA)

unread,
Jun 3, 2018, 2:55:03 AM6/3/18
to jenkinsc...@googlegroups.com

milkiwaysabe@gmail.com (JIRA)

unread,
Jun 21, 2018, 9:06:03 PM6/21/18
to jenkinsc...@googlegroups.com
jang hyemi started work on Bug JENKINS-51641
 
Change By: jang hyemi
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Aug 8, 2018, 10:21:03 AM8/8/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: workflow-job-plugin
Component/s: pipeline
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

jack.bradach@skyworksinc.com (JIRA)

unread,
Jun 5, 2019, 7:22:01 PM6/5/19
to jenkinsc...@googlegroups.com
Jack Bradach commented on Bug JENKINS-51641
 
Re: Duplicate commits displayed on Pipeline build when using "Poll SCM" and "Pipeline script from SCM"

We see the same issue in our environment, using the Perforce plugin in poll mode.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jack.bradach@skyworksinc.com (JIRA)

unread,
Jun 5, 2019, 7:23:02 PM6/5/19
to jenkinsc...@googlegroups.com

williambrode@gmail.com (JIRA)

unread,
Jun 6, 2019, 8:10:05 PM6/6/19
to jenkinsc...@googlegroups.com
William Brode commented on Bug JENKINS-51641
 
Re: Duplicate commits displayed on Pipeline build when using "Poll SCM" and "Pipeline script from SCM"

When I've seen this before it's because we are doing the same checkout multiple times.  Are you sure your checkout wasn't inside of a loop or something?  Or are your source and jenkinsfile and pipeline shared library all on the same perforce server?

jack.bradach@skyworksinc.com (JIRA)

unread,
Jun 6, 2019, 10:04:03 PM6/6/19
to jenkinsc...@googlegroups.com

Funny you should ask; turns out the affected jobs all run a script that does one or more perforce checkouts as part of the build process as some sort of Uzumaki in Makefile form.  >.<   They're going to make it stop doing that, and I imagine we'll be fine until it awakens again.

Reply all
Reply to author
Forward
0 new messages