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

P4_CLIENT environment variable wrong for parallel builds


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • p4-plugin
    • None
    • Jenkins v2.235.1
      P4 Plugin 1.10.13
      Master and Server on Debian
      Agent on Windows 10
      JAva 8

      I recently upgraded from version 1.9.5, where I didn't see this issue.  I have several FreeStyleBuilds that run on Swarm reviews.  They execute concurrent builds, one per agent.  They use the P4_CLIENT environment variable to find what files are unshelved in the default changelist, but when two builds start at similar times one of them will have the P4_CLIENT variable from the other.

      My client names do not use the executor number because there is only ever one executor, so this is not a duplicate of JENKINS-60213.

      I have managed to reproduce the error with the attached build configuration (server credential name removed).  It has a timer trigger for 1/minute but I had to spam the Build button with two agents connected to the master to get the job to fail.

        1. config.xml
          3 kB
        2. console3_SUCCESS.txt
          3 kB
        3. console4_FAILURE.txt
          3 kB
        4. console5_SUCCESS.txt
          3 kB

            Unassigned Unassigned
            rebnridgway Nick Ridgway
            0 Vote for this issue
            2 Start watching this issue