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

P4 sync code and display 'change' more than once.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Component/s: p4-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      I created a Pipeline which sync code via P4 plugin,

      I noticed the 'changes' will display triple, for example, there is only 7 changes, but the 'change' will display 21 changes.

       

      And I checked the poll log, its sync the code three times, how can I avoid this issue?

      j1JuEOaOP4 Task: syncing files at change: 3957444
      (p4):cmd:... p4 sync /Jenkins/xxxxxx/myPipelineJob%40script/...@3957444
      p4 sync /Jenkins/xxxxxx/myPipelineJob%40script/...@3957444
      ...
      ...
      P4 Task: syncing files at change: 3957444
      (p4):cmd:... p4 sync /Jenkins/xxxxxx/myPipelineJob/...@3957444
      p4 sync /Jenkins/xxxxxx/myPipelineJob/...@3957444
      ...
      ...
      P4 Task: syncing files at change: 3957444
      (p4):cmd:... p4 sync -q /Jenkins/xxxxxx/workspace/TEST/Pipel___
      p4 sync -q /Jenkins/xxxxxx/workspace/TEST/Pipeline-Development/TEST/...@3957444

        Attachments

          Activity

          Hide
          shanghai_fu Shanghai Fu added a comment -

          Anyone meet the same issue? the same change report twice.

          Show
          shanghai_fu Shanghai Fu added a comment - Anyone meet the same issue? the same change report twice.
          Hide
          p4paul Paul Allen added a comment -

          If there is more than one sync in the Jenkins Job and the sync contains one or more of the same files, then the change will get reported twice.

          For example, on a Pipeline build the Jenkinsfile is sync'ed by the script then again as it is within the workspace view of the 'checkout' or 'p4sync' stage. 

          Show
          p4paul Paul Allen added a comment - If there is more than one sync in the Jenkins Job and the sync contains one or more of the same files, then the change will get reported twice. For example, on a Pipeline build the Jenkinsfile is sync'ed by the script then again as it is within the workspace view of the 'checkout' or 'p4sync' stage. 
          Hide
          p4karl Karl Wirth added a comment -

          Have documented the limitation in Jenkins changelist reporting:

          https://swarm.workshop.perforce.com/changes/23696

          Show
          p4karl Karl Wirth added a comment - Have documented the limitation in Jenkins changelist reporting: https://swarm.workshop.perforce.com/changes/23696
          Hide
          p4karl Karl Wirth added a comment -

          Closing due to limitation in Jenkins framework. Have documented limitation in P4Jenkins documentation.

          Show
          p4karl Karl Wirth added a comment - Closing due to limitation in Jenkins framework. Have documented limitation in P4Jenkins documentation.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Paul Allen
          Path:
          WORKFLOW.md
          http://jenkins-ci.org/commit/p4-plugin/86f2b5a7d8b1d46f099e40b8474239b2fa6a7f41
          Log:
          (karl_wirth) Document changelist reporting behavior when using multiple p4sync steps.

          JENKINS-48854

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Paul Allen Path: WORKFLOW.md http://jenkins-ci.org/commit/p4-plugin/86f2b5a7d8b1d46f099e40b8474239b2fa6a7f41 Log: (karl_wirth) Document changelist reporting behavior when using multiple p4sync steps. JENKINS-48854

            People

            • Assignee:
              p4paul Paul Allen
              Reporter:
              shanghai_fu Shanghai Fu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: