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

Workflow Multibranch doesn't create workspace directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 1.640, Workflow plugins 1.11, Windows 7
    • Similar Issues:

      Description

      A newly created multibranch workflow job doesn't create its workspace/${proj} directory before trying to clone its repository to find the Jenkinsfile to run. Using Mercurial, the job for the default branch tries to clone the repository to workspace/${proj}/default@script and fails because the parent directory doesn't exist. Symptom:

      $ "C:\Program Files\TortoiseHg\hg.exe" --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" clone --noupdate C:\Jenkins\hgcache\AD53F80F6916C32F1510B2DC580E2777B26FE751-myjob-myuser "C:\Jenkins\workspace\myjob\default@script"
      abort: The system cannot find the path specified: 'C:\Jenkins\workspace\myjob\default@script'
      

      To reproduce:

      1. Install Jenkins, Workflow Aggregator, Workflow Multibranch
      2. Configure Hg in Jenkins global settings
      3. Create a Multibranch Workflow job from an Hg repository

        Attachments

          Issue Links

            Activity

            cjyar cjyar created issue -
            cjyar cjyar made changes -
            Field Original Value New Value
            Description A newly created multibranch workflow job doesn't create its "workspace/${proj}" directory before trying to clone its repository to find the Jenkinsfile to run. Using Mercurial, the job for the default branch tries to clone the repository to "workspace/${proj}/default@script" and fails because the parent directory doesn't exist. Symptom:
            {{$ "C:\Program Files\TortoiseHg\hg.exe" --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" clone --noupdate C:\Jenkins\hgcache\AD53F80F6916C32F1510B2DC580E2777B26FE751-myjob-myuser "C:\Jenkins\workspace\myjob\default@script"
            abort: The system cannot find the path specified: 'C:\Jenkins\workspace\myjob\default@script'}}

            To reproduce:
            # Install Jenkins, Workflow Aggregator, Workflow Multibranch
            # Configure Hg in Jenkins global settings
            # Create a Multibranch Workflow job from an Hg repository
            A newly created multibranch workflow job doesn't create its "workspace/${proj}" directory before trying to clone its repository to find the Jenkinsfile to run. Using Mercurial, the job for the default branch tries to clone the repository to "workspace/${proj}/default@script" and fails because the parent directory doesn't exist. Symptom:

            {quote}$ "C:\Program Files\TortoiseHg\hg.exe" --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" clone --noupdate C:\Jenkins\hgcache\AD53F80F6916C32F1510B2DC580E2777B26FE751-myjob-myuser "C:\Jenkins\workspace\myjob\default@script"
            abort: The system cannot find the path specified: 'C:\Jenkins\workspace\myjob\default@script'
            {quote}

            To reproduce:
            # Install Jenkins, Workflow Aggregator, Workflow Multibranch
            # Configure Hg in Jenkins global settings
            # Create a Multibranch Workflow job from an Hg repository
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-28121 [ JENKINS-28121 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            jglick Jesse Glick made changes -
            Description A newly created multibranch workflow job doesn't create its "workspace/${proj}" directory before trying to clone its repository to find the Jenkinsfile to run. Using Mercurial, the job for the default branch tries to clone the repository to "workspace/${proj}/default@script" and fails because the parent directory doesn't exist. Symptom:

            {quote}$ "C:\Program Files\TortoiseHg\hg.exe" --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" clone --noupdate C:\Jenkins\hgcache\AD53F80F6916C32F1510B2DC580E2777B26FE751-myjob-myuser "C:\Jenkins\workspace\myjob\default@script"
            abort: The system cannot find the path specified: 'C:\Jenkins\workspace\myjob\default@script'
            {quote}

            To reproduce:
            # Install Jenkins, Workflow Aggregator, Workflow Multibranch
            # Configure Hg in Jenkins global settings
            # Create a Multibranch Workflow job from an Hg repository
            A newly created multibranch workflow job doesn't create its {{workspace/$\{proj\}}} directory before trying to clone its repository to find the {{Jenkinsfile}} to run. Using Mercurial, the job for the default branch tries to clone the repository to {{workspace/$\{proj\}/default@script}} and fails because the parent directory doesn't exist. Symptom:

            {code:none}
            $ "C:\Program Files\TortoiseHg\hg.exe" --config auth.jenkins.prefix=* --config ******** --config ******** --config "auth.jenkins.schemes=http https" clone --noupdate C:\Jenkins\hgcache\AD53F80F6916C32F1510B2DC580E2777B26FE751-myjob-myuser "C:\Jenkins\workspace\myjob\default@script"
            abort: The system cannot find the path specified: 'C:\Jenkins\workspace\myjob\default@script'
            {code}

            To reproduce:
            # Install Jenkins, Workflow Aggregator, Workflow Multibranch
            # Configure Hg in Jenkins global settings
            # Create a Multibranch Workflow job from an Hg repository
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167466 ] JNJira + In-Review [ 198200 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                cjyar cjyar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: