Skip to end of metadata
Go to start of metadata

Plugin Information

View Bitbucket Aged References SCM Filter on the plugin site for more information.



This plugin extends the filtering abilities of the github-branch-source-plugin one.

This filter will ignore references (branches and pull requests) where its last commit creation date is older than the defined threshold (in days). Ignored references wont be added as Run sources or will be disabled and tagged for deletion on the next full repo scan.


When defining a new Bitbucket Team/Project job job, include an additional behaviour (placed under the additional separator). 

This behaviour is configurable, being mandatory to specify the acceptable threshold (positive days) for each reference:

In case of an invalid positive threshold, the form wont validate:

1 Comment

  1. This seems to not work.
    org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait
    	at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(
    	at org.kohsuke.stapler.RequestImpl.instantiate(
    	at org.kohsuke.stapler.RequestImpl.access$200(
    	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(
    Caused: java.lang.IllegalArgumentException: Failed to instantiate class jenkins.scm.api.trait.SCMSourceTrait from {"retentionDays":"60","stapler-class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait","$class":"org.jenkinsci.plugins.scm_filter.BitbucketAgedRefsTrait"}
    	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(
    	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(
    	at org.kohsuke.stapler.RequestImpl.bindJSON(
    	at org.kohsuke.stapler.RequestImpl.injectSetters(
    	at org.kohsuke.stapler.RequestImpl.instantiate(
    	at org.kohsuke.stapler.RequestImpl.access$200(