title: Jenkins Copy Artifact unable to find folder/multiProjectPipeline/branchWithSlash
body: <p>I have Jenkins LTS 2.60.2 on Windows Server 2016 and using these plugins:</p>
  
  <ul>
  <li>Folders plugin (6.1.0)</li>
  <li><a href="https://wiki.jenkins.io/display/JENKINS/Copy+Artifact+Plugin" rel="nofollow noreferrer">Copy Artifact</a> plugin (1.38.1)</li>
  <li>Pipeline plugin (2.5) + all dependent pipeline sub-plugins</li>
  <li>Various other dependent plugins...</li>
  </ul>
  
  <p>See <a href="https://stackoverflow.com/questions/45282440/pipeline-to-use-artifacts-from-2-projects-associated-by-the-same-git-branch-name">Pipeline to use artifacts from 2 projects associated by the same git branch name</a> for more details about my setup, but to sum it up I have these items:</p>
  
  <ul>
  <li>playground (a folder created with the Folders plugin to group all these following items)</li>
  <li>frontend (multibranch pipeline)</li>
  <li>backend (multibranch pipeline)</li>
  <li>configure (pipeline with a parameter called BRANCH_NAME)</li>
  </ul>
  
  <p>The frontend and backend <strong>git repos</strong>, both have a branch called <strong>master</strong> and one called <strong>release/2017.2</strong>.</p>
  
  <p>The idea is to call the <em>configure</em> pipeline automatically after each successful build, passing the git branch name. Automatically triggering the <em>configure</em> pipeline works.</p>
  
  <p>What doesn't work and I need your help to fix, is the step inside the <em>configure</em> pipeline to copy the artifacts from a multibranchPipeline/specificBranch.</p>
  
  <p>If for the BRANCH_NAME parameter (or the upstream pipeline) is <em>master</em> it works. If BRANCH_NAME is: <em>release/2017.2</em> I get this error:</p>
  
  <blockquote>
    <p>ERROR: Unable to find project for artifact copy:
    playground/frontend/release%2f2017.2 This may be due to incorrect project
    name or permission settings; see help for project name in job
    configuration. Finished: FAILURE</p>
  </blockquote>
  
  <p>The <strong>configure pipeline</strong> looks like this:</p>
  
  <pre><code>node {
    stage('Prepare') {
        def projectname = "playground/frontend/" + "${BRANCH_NAME}".replace("/", "%2f")
        step([$class: 'CopyArtifact', projectName: "${projectname}", selector: [$class: 'StatusBuildSelector', stable: false]])
    }
    stage('Archive') {
        archiveArtifacts '**'
    }
  }
  </code></pre>
  
  <p>As you can see I already replace / with %2f (it's needed).</p>
  
  <p>If I don't use the "playground" folder (all my pipelines as is, not inside a folder item), it works. If I use the folder and use the master branch, it works. It doesn't work if I use the folder and a branch name like 2017.2. What am I doing wrong? Can you help making it work? Of well if it's a bug (I searched in <a href="https://issues.jenkins-ci.org" rel="nofollow noreferrer">https://issues.jenkins-ci.org</a> and found some bugs where a similar setup with folder doesn't work, but they have been fixed... so I really wonder...) in the copy artifact plugin, please file the bug and share the link here, so we can all monitor its progress...</p>
  
  <p>Thank you.</p>