Key: JENKINS-10313
URL: https://issues.jenkins-ci.org/browse/JENKINS-10313
Project: Jenkins
Issue Type: Bug
Components: copyartifact
Affects Versions: current
Environment: Mac OS X 10.6.8 client running Jenkins Master
Ubuntu 10.04 running Jenkins slave
Copy Artifact Plugin v1.16
Jenkins v1.420
Reporter: snrkiwi71
Assignee: Alan Harder
[can't find anything on this in the issues tracker, nor the 'net]
Project A ("ztest1") is a multi-configuration job that produces artifacts for Ubuntu and Mac OS X (axes values = macosx64, ubuntuLynx32), for two fake branches (axes values = x, y). Project B ("ztest2") wants access to the appropriate artifacts from A, given the OS/branch combination.
Using "ztest1/label=macosx64,branch=x" as the "Project name" for copy artifacts works, for all B combinations, but this obviously copies the artifacts for macosx64/x into all B combinations.
Using "ztest1/label=$label,branch=x" instead produces the following error.
{{Unable to find project for artifact copy: ztest1/label=macosx64,branch=x
This may be due to incorrect project name or permission settings; see help for project name in job configuration.
Build step 'Copy artifacts from another project' marked build as failure}}
The actual project name, including the parameters, is correct, but it fails. The same happens if you use "...,branch=$branch" also.
The copy artifacts help instructs
{{To copy artifacts from one matrix project to another, use a parameter to select the matching configuration in the source project. Example: OtherMatrixJob/jdk=$jdk}}
so I believe that the above syntax is correct.
The Hudson log for failed B build shows only
{{Jul 12, 2011 12:16:43 PM hudson.model.Run run
INFO: ztest2 #12 main build action completed: FAILURE
Jul 12, 2011 12:16:42 PM hudson.model.Run run
INFO: ztest2 » x,macosx64 #12 main build action completed: FAILURE
Jul 12, 2011 12:16:33 PM hudson.model.Run run
INFO: ztest2 #11 main build action completed: FAILURE
Jul 12, 2011 12:16:32 PM hudson.model.Run run
INFO: ztest2 » x,macosx64 #11 main build action completed: FAILURE
Jul 12, 2011 12:13:06 PM hudson.model.Run run
INFO: ztest2 #10 main build action completed: FAILURE}}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Alan Harder commented on JENKINS-10313:
---------------------------------------
What authorization model does your jenkins use, and what are the permissions for ztest1? Please read the info about permissions + use of params at the top of the project-name help and check if that is the problem here. As soon as you introduce any $param in the project-name setting it makes this permissions check.
snrkiwi71 commented on JENKINS-10313:
-------------------------------------
Using Matrix-based security. Only way to get it to work is for the Anonymous user to have Job.Read permissions. Maybe add this specific note to the help text you indicated? I'd looked there, but it wasn't specific enough on what permissions work. I had to figure it out through trial-and-error.
Also, "Logged-in users can do anything" gets it to work also, but that approach doesn't work for us.
Thanks, issue closed.
Alan Harder resolved JENKINS-10313.
-----------------------------------
Resolution: Not A Defect
Ferenc Kovacs commented on JENKINS-10313:
-----------------------------------------
the Role strategy plugin also borked: adding only a project based job read isn't enough. :/
|
|
|||||||||||||
|
This message is automatically generated by JIRA. |
| If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|
||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |
|
|
|||||||||||||
|
This message is automatically generated by JIRA. |
|
If you think it was sent incorrectly, please contact your JIRA administrators. |