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

Manual workspace root reset on every sync

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • p4-plugin
    • None
    • Jenkins 2.46 with P4 Plugin 1.4.14

      It appears that all manual workspaces have their root directories reset with each sync. I have a Pipeline job read from a source controlled Jenkinsfile that references a global library resulting in 3 different clients. In each of them I am seeing the client root continually reset.

      Pipeline job client: jenkins-master-1.0.0-AppName
      1. Client root is set first to the proper directory = $JENKINS_HOME/workspace/JobName
      2. Client root is finally set to just $JENKINS_HOME

      The same behavior is exhibited in:
      Pipeline Jenkinsfile client: jenkins-master-1.0.0-AppName-Jenkinsfile
      Global library client: jenkins-master-1.0.0-Library

      This has resulted in hundreds or thousands of unneeded specs in the spec depot and also restricts the ability to run manual p4 commands using the “sh” build step

        1. pipeline-config-02.PNG
          pipeline-config-02.PNG
          37 kB
        2. pipeline-config-01.PNG
          pipeline-config-01.PNG
          47 kB
        3. JenkinsfileExample.PNG
          JenkinsfileExample.PNG
          25 kB
        4. Jenkinsfile.demo
          0.8 kB
        5. demo-client-spec-diff-07to08.png
          demo-client-spec-diff-07to08.png
          52 kB
        6. demo-client-spec.PNG
          demo-client-spec.PNG
          35 kB

            tangkun75 Kun Tang
            rsimat Randy Simat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: