Class BitbucketLegacyTraitConverter
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.scm.trait.BitbucketLegacyTraitConverter
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic jenkins.scm.api.trait.SCMSourceTraitmaybeConvert(jenkins.scm.api.trait.SCMSourceTrait trait) Attempts to convert known legacy traits into their newer equivalents.
-
Method Details
-
maybeConvert
@CheckForNull 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.
-