Skip to content
Browse files

Merge pull request #36 from daniel-beck/JENKINS-22828

[FIXED JENKINS-22828] Expect an AbstractProject for input validation.
  • Loading branch information...
ikedam committed May 3, 2014
2 parents 4371497 + 8c76443 commit 59d7982cdd39db2bb3683eb6560cd7dfe1fab5e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/copyartifact/
@@ -387,7 +387,7 @@ private boolean perform(Run src, AbstractBuild<?,?> dst, String expandedFilter,
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {

public FormValidation doCheckProjectName(
@AncestorInPath AbstractItem anc, @QueryParameter String value) {
@AncestorInPath AbstractProject anc, @QueryParameter String value) {
// Require CONFIGURE permission on this project
if (!anc.hasPermission(Item.CONFIGURE)) return FormValidation.ok();
FormValidation result;

0 comments on commit 59d7982

Please sign in to comment.
You can’t perform that action at this time.