ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Postponed
    • Priority: Major
    • Component/s: p4-plugin
    • Environment:
      Windows 7
      Jenkins ver. 2.62
      P4Plugin 1.7.0
      Pipeline: Shared Groovy Libraries: 2.8

      We are doing parallel builds on different nodes, and also using Pipeline Libraries for common groovy functions.

      When jenkins detects a change on the main branch it syncs this the corresponding client (so far so good), then it syncs the Pipeline Library client. The problem is from that point the P4 env variables all point to the Pipeline Library client instead of the main source code client.

      So P4_CHANGELIST will contain the changelist for the Pipeline library and not the main workspace.

      This causes issues when I need to sync the different workspaces on parallel nodes, because I can't now which changelist the build was started for.

       

      Found last change 97499 on syncID jenkins-NODE_NAME-main
      ... p4 client -o jenkins-master-main
       +
      ... p4 info
       +
      ... p4 changes -m20 //jenkins-master-main/...@97499,97503
       +
      ... p4 changes -l -m1 @97503
       +
      ... p4 user -o xxxxxxxx
       +
      ... p4 describe -s 97503
       +
      ... p4 fixes -c97503
       +
      ... done
      ....
      ....
      ....
      
      Found last change 97497 on syncID jenkins-NODE_NAME-main_1_jenkins_lib
      ... p4 client -o jenkins-master-main_1_jenkins_lib
       +
      ... p4 info
       +
      ... p4 client -o jenkins-master-main_1_jenkins_lib
       +
      ... p4 info
       +
      ... done
      [Pipeline] echo
      P4_CHANGELIST: 97497
      [Pipeline] echo
      P4_CLIENT: jenkins-master-osdk-v6-main_1_jenkins_lib
      

            Assignee:
            Paul Allen
            Reporter:
            antoine terrienne
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: