Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

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 Bitbucket Branch Source Plugin.

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 won't be added as Run sources or will be disabled and tagged for deletion on the next full repository 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 won't validate:

1 Comment

  1. Unknown User (red888)

    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(ClassDescriptor.java:265)
    	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:764)
    	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
    	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
    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(RequestImpl.java:680)
    	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:727)
    	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
    	at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:833)
    	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
    	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)