...
project_name=daily
_=/bin/env
Unable to find project for artifact copy: daily
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
...
When I set the project name by hand, there is no error. When I use a build parameter, and set its value to the same value as the hand typed value, it fails. The above message show what variable I use: $project_name
Please see the screenshots for the configuration details.
After reading more closely the help, I decided to upload another image, this time showing global project permissions. There is no per-project permissions.
mindless@java.net (JIRA)
unread,
Sep 4, 2012, 3:13:49 AM9/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I think your screenshot shows exactly the situation described in the help.. your project is not accessible to the group for all authenticated users (I think it's called "authenticated", if I remember correctly).
Do you mean that the group (the second row on the matrix authorization strategy screenshot) needs to be granted the same permissions as the user who has the most permissions?
mindless@java.net (JIRA)
unread,
Sep 4, 2012, 4:15:49 PM9/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
My only comment is that the documentation could be clearer. It says "...the source project must be accessible to all authenticated users;..." May I suggest instead something like "you must have a group called 'authenticated' and grant the Job Read permission to this group". What confounded me is that I did have the Job Read permission granted for all the users and the group defined in the screenshot, so to me, I was not missing anything. Maybe the error message could say something along these lines as well. Thank you for the help.
mwigzell@tweddle.com (JIRA)
unread,
Aug 1, 2013, 4:32:47 PM8/1/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Hi I wish to reopen this bug since it is actually a bug for a different reason, namely that the use has access to the selected job if he doesn't use dynamic project name, but hard codes it instead. The fact that one must enable read access for specifying a project via a dynamic variabe vs. specifying it in a hardcoded fashion indicates there is a bug in copy artifacts which should forbid the access unless the authenticated group is added with read permissions for jobs. (This is a very badly documented feature, and has caused me no end of trouble)
Code changed in jenkins
User: ikedam
Path:
src/main/java/hudson/plugins/copyartifact/CopyArtifact.java http://jenkins-ci.org/commit/copyartifact-plugin/84594eccc100d1ac6e77703aa7b53b963fccf97a
Log: [FIXED JENKINS-14999] The authorization of builds are considered (when used with QueueItemAuthenticator). QueueItemAuthenticator is available from Jenkins 1.520.
scm_issue_link@java.net (JIRA)
unread,
Dec 15, 2013, 1:32:02 AM12/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Code changed in jenkins
User: ikedam
Path:
src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testQueueItemAuthenticator/config.xml
src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testQueueItemAuthenticator/users/admin/config.xml
src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testQueueItemAuthenticator/users/test1/config.xml
src/test/resources/hudson/plugins/copyartifact/CopyArtifactTest/testQueueItemAuthenticator/users/test2/config.xml http://jenkins-ci.org/commit/copyartifact-plugin/c0cde9aa27bc9f74c41d549ca28f737f3f648819
Log: JENKINS-14999 Added tests for supports of QueueItemAuthenticator. As it works only with Jenkins >= 1.521, it is commented out for now.
scm_issue_link@java.net (JIRA)
unread,
Dec 15, 2013, 1:32:02 AM12/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message