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

Changeset number in not updated when I switch to a different perforce server using Multiple SCMs plugin

XMLWordPrintable

      I tried to use multiple SCM plugin to access to two different perforce servers in one jenkins job, wrote script code in powershell. Every time I build my job, it will automatically sync the work space (map to different subdirectory in the workspace), since my job contains two perforce clients, it needs to sync from two servers. But the changeset number is always the first server's, so when I came to the second server, there will be an issue, the second server has a much larger change set, it will take a long time to describe the change because the changeset number is from the first server, at last I met the OutOfMemory error:

      Building in workspace C:\jenkins\jobs\VCOPS_PLATFORM_AUTOTEST\workspace
      Using master perforce client: VCOPSPLAT_STATS_SANDBOX
      [workspace] $ C:\perforce-r10.2\p4.exe workspace -o VCOPSPLAT_STATS_SANDBOX

      Last build changeset: 129940

      [workspace] $ C:\perforce-r10.2\p4.exe changes -s submitted -m 1 //...
      [workspace] $ C:\perforce-r10.2\p4.exe -s changes -s submitted //VCOPSPLAT_STATS_SANDBOX/... (129941,)129982
      Sync'ing workspace to changelist 129982.
      [workspace] $ C:\perforce-r10.2\p4.exe -s sync //VCOPSPLAT_STATS_SANDBOX/...@129982
      Sync complete, took 364 ms
      Using master perforce client: VCOPSPLAT_CLOUDVM_SANDBOX
      [workspace] $ C:\perforce-r10.2\p4.exe workspace -o VCOPSPLAT_CLOUDVM_SANDBOX

      Last build changeset: 129940

      [workspace] $ C:\perforce-r10.2\p4.exe changes -s submitted -m 1 //...
      [workspace] $ C:\perforce-r10.2\p4.exe -s changes -s submitted //VCOPSPLAT_CLOUDVM_SANDBOX/... (129941,)1934948
      [workspace] $ C:\perforce-r10.2\p4.exe describe -s 1934844
      [workspace] $ C:\perforce-r10.2\p4.exe -G where //...
      [workspace] $ C:\perforce-r10.2\p4.exe describe -s 1934765
      ...

      Is this due to perforce plugin or multiple SCM plugin? I have update to the latest plugins.

            Unassigned Unassigned
            jasonwang Jian Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: