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.

Summary

Description

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.

Usage

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(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)
    .......