diff --git a/src/main/java/io/jenkins/plugins/forensics/reference/SimpleReferenceRecorder.java b/src/main/java/io/jenkins/plugins/forensics/reference/SimpleReferenceRecorder.java index 51222d4c..7fd4fabd 100644 --- a/src/main/java/io/jenkins/plugins/forensics/reference/SimpleReferenceRecorder.java +++ b/src/main/java/io/jenkins/plugins/forensics/reference/SimpleReferenceRecorder.java @@ -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; @@ -230,7 +231,7 @@ public boolean isApplicable(final Class 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(); } @@ -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();