Skip to content

Commit

Permalink
Fix type of configuration item.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 12, 2024
1 parent 53fc67e commit 49cc06d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractProject;
import hudson.model.BuildableItem;
import hudson.model.Item;
import hudson.model.Job;
import hudson.model.Run;
Expand Down Expand Up @@ -230,7 +231,7 @@ public boolean isApplicable(final Class<? extends AbstractProject> jobType) {
* @return the model with the possible reference jobs
*/
@POST
public ComboBoxModel doFillReferenceJobItems(@AncestorInPath final AbstractProject<?, ?> project) {
public ComboBoxModel doFillReferenceJobItems(@AncestorInPath final BuildableItem project) {
if (JENKINS.hasPermission(Item.CONFIGURE, project)) {
return model.getAllJobs();
}
Expand All @@ -249,7 +250,7 @@ public ComboBoxModel doFillReferenceJobItems(@AncestorInPath final AbstractProje
*/
@POST
@SuppressWarnings("unused") // Used in jelly validation
public FormValidation doCheckReferenceJob(@AncestorInPath final AbstractProject<?, ?> project,
public FormValidation doCheckReferenceJob(@AncestorInPath final BuildableItem project,
@QueryParameter final String referenceJob) {
if (!JENKINS.hasPermission(Item.CONFIGURE, project)) {
return FormValidation.ok();
Expand Down

0 comments on commit 49cc06d

Please sign in to comment.