-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Critical
-
Component/s: rebuild-plugin
-
None
-
Environment:Jenkins newest version
when we updated our jenkins and the rebuilder and git parameters plugin there is an issue with getting a list of git branches.
we are using right now :
Jenkins version 2.414.3
rebuild:1.34
git-parameter:0.9.18
this versions are working togather but if we update them we get the error when using the plugin.
using chatgpt i discovered its an issue with rebuilder plugin in RebuildValidatorSuppressor script.
when i built the plugin again with this fix it worked and started showing branches again.
The error occurs because, in your RebuildValidatorSuppressor class, you haven't provided a valid override of isApplicable(Run<?, ?> build) that matches the expected signature. Jenkins expects this method to be overridden.
public class RebuildValidatorSuppressor extends RebuildValidator {      @Override   public boolean isApplicable(Run<?, ?> build) {     // Your custom logic to determine if the rebuild action should be suppressed.     // Example: Check if the build's project has a specific characteristic.          if (build.getParent() instanceof SomeSpecificProjectType) {       return false; // Suppress rebuild action for this project type.     }          return true; // Allow rebuild action otherwise.   }  @Override   public boolean isApplicable(AbstractProject<?, ?> project) {     // Your custom logic for the project-specific applicability.     return super.isApplicable(project);   } }