Class BitbucketLegacyTraitConverter

  • public class BitbucketLegacyTraitConverter
    extends Object
    • Method Detail

      • maybeConvert

        public static jenkins.scm.api.trait.SCMSourceTrait maybeConvert​(jenkins.scm.api.trait.SCMSourceTrait trait)
        Attempts to convert known legacy traits into their newer equivalents. May return one of the following.
        • Returns null if support for the trait has been dropped.
        • Returns the new equivalent of the trait if there is one available.
        • Returns the same trait instance if neither of the previous conditions have been met.