Issue Type: Bug Bug
Assignee: Unassigned
Components: copyartifact
Created: 19/Dec/12 1:24 PM
Description:

In a following case, Copy Artifact fails to find the build to copy.

  • In confituration: specify Project name filtering with a build parameters, using variables.
  • In build: use variables containing slash("/").

For instance:

  • Configure Project name to "SomeParameterizedJob/BRANCH=${value1}"
  • Run build with setting value1 to "origin/develop"

Even if there is a build with BRANCH=origin/develop in SomeParameterizedJob, this results in a following failure:
Unable to find project for artifact copy: SomeParameterizedJob/BRANCH=origin/master

This seems caused for Copy Artifact uses the LAST slash to devide the Project name parameter to the job name and the filter parametes (In CopyArtifact.JobResolver, using lastIndexOf).
So "SomeParameterizedJob/BRANCH=origin/master" is devided into "SomeParameterizedJob/BRANCH=origin" and "master".

Job names never contain slashes, and how about replaces lastIndexOf to indexOf to use the FIRST slash to devide the project name?

Environment: Windows XP
Jenkins 1.494
Copy Artifact 1.25
Project: Jenkins
Priority: Major Major
Reporter: Yasuyuki IKEDA
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to