Package jetbrains.buildServer.serverSide
Class ChangesCalculationOptionsImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ChangesCalculationOptionsImpl
-
- All Implemented Interfaces:
ChangesCalculationOptions,ChangesCalculationOptionsEx
public class ChangesCalculationOptionsImpl extends Object implements ChangesCalculationOptionsEx
-
-
Constructor Summary
Constructors Constructor Description ChangesCalculationOptionsImpl(BuildPromotionManager buildPromotionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangesCalculationOptionsImplcopy()Returns a new copy of this object which can be changed independently from the originalVcsModificationProcessorgetCallback()Returns callback to invoke on computed changesDefaultBranchChangesModegetDefaultBranchChangesMode()Returns custom default branch changes mode to use or null if mode configured in buildType should be used.DategetDetachedRootsChangesMinRegistrationDate()BooleangetIncludeDependencyChanges()Returns true if changes from snapshot dependencies should be computed, false if they should not be computed, null if the option specified in build configuration should be used.SelectPrevBuildPolicygetPrevBuildPolicy()Returns previous build selection policy to use during changes calculation.PreviousBuildsProvidergetPreviousBuildsProvider()BooleangetShowSettingsChanges()Returns true if settings changes should be shown, false if they should not be shown (even if enabled in versioned settings config), null if option from versioned settings config should be usedBooleanisIncludeUnreachableChangesFromDetachedRoots()booleanisReturnChangesIfNoPreviousBuildFound()Returns true if changes should be returned when no previous build is foundChangesCalculationOptionsImplsetCallback(VcsModificationProcessor callback)Sets the callback to invoke on computed changesChangesCalculationOptionsImplsetDefaultBranchChangesMode(DefaultBranchChangesMode defaultBranchChangesMode)Sets custom default branch changes mode to use, null means - use the mode configured in the buildTypevoidsetDetachedRootsChangesMinRegistrationDate(Date registrationDate)Sets the minimal VCS modification registration date (commits registered before this date won't be returned).ChangesCalculationOptionsImplsetIncludeDependencyChanges(Boolean includeDependencyChanges)Specifies whether changes from snapshot dependencies should be computed.ChangesCalculationOptionsExsetIncludeUnreachableChangesFromDetachedRoots(Boolean includeUnreachable)ChangesCalculationOptionsImplsetPrevBuildPolicy(SelectPrevBuildPolicy prevBuildPolicy)Sets previous build selection policy to use during changes calculation.ChangesCalculationOptionsImplsetPreviousBuildsProvider(PreviousBuildsProvider previousBuildsProvider)Sets custom provider of previous builds, this overwrites the effect ofChangesCalculationOptionsEx.setPrevBuildPolicy(SelectPrevBuildPolicy)if it was called before.ChangesCalculationOptionsImplsetReturnChangesIfNoPreviousBuildFound(boolean returnChangesIfNoPreviousBuildFound)Specifies whether changes should be return when previous build is not found, by default true.ChangesCalculationOptionsImplsetShowSettingsChanges(Boolean showSettingsChanges)Specifies whether settings changes should be shown.
-
-
-
Constructor Detail
-
ChangesCalculationOptionsImpl
public ChangesCalculationOptionsImpl(@NotNull BuildPromotionManager buildPromotionManager)
-
-
Method Detail
-
copy
@NotNull public ChangesCalculationOptionsImpl copy()
Description copied from interface:ChangesCalculationOptionsReturns a new copy of this object which can be changed independently from the original- Specified by:
copyin interfaceChangesCalculationOptions- Specified by:
copyin interfaceChangesCalculationOptionsEx- Returns:
- see above
-
getPrevBuildPolicy
@NotNull public SelectPrevBuildPolicy getPrevBuildPolicy()
Description copied from interface:ChangesCalculationOptionsReturns previous build selection policy to use during changes calculation.- Specified by:
getPrevBuildPolicyin interfaceChangesCalculationOptions- Returns:
- see above
-
setPrevBuildPolicy
@NotNull public ChangesCalculationOptionsImpl setPrevBuildPolicy(@NotNull SelectPrevBuildPolicy prevBuildPolicy)
Description copied from interface:ChangesCalculationOptionsSets previous build selection policy to use during changes calculation. If not specified, then theSelectPrevBuildPolicy.SINCE_LAST_BUILDpolicy is used.- Specified by:
setPrevBuildPolicyin interfaceChangesCalculationOptions- Specified by:
setPrevBuildPolicyin interfaceChangesCalculationOptionsEx- Parameters:
prevBuildPolicy- policy to use- Returns:
- options object
-
setPreviousBuildsProvider
@NotNull public ChangesCalculationOptionsImpl setPreviousBuildsProvider(@NotNull PreviousBuildsProvider previousBuildsProvider)
Description copied from interface:ChangesCalculationOptionsExSets custom provider of previous builds, this overwrites the effect ofChangesCalculationOptionsEx.setPrevBuildPolicy(SelectPrevBuildPolicy)if it was called before.- Specified by:
setPreviousBuildsProviderin interfaceChangesCalculationOptionsEx- Returns:
- this object
-
getIncludeDependencyChanges
@Nullable public Boolean getIncludeDependencyChanges()
Description copied from interface:ChangesCalculationOptionsReturns true if changes from snapshot dependencies should be computed, false if they should not be computed, null if the option specified in build configuration should be used.- Specified by:
getIncludeDependencyChangesin interfaceChangesCalculationOptions- Returns:
- see above
-
setIncludeDependencyChanges
@NotNull public ChangesCalculationOptionsImpl setIncludeDependencyChanges(@Nullable Boolean includeDependencyChanges)
Description copied from interface:ChangesCalculationOptionsSpecifies whether changes from snapshot dependencies should be computed. Null means use option specified in build configuration.- Specified by:
setIncludeDependencyChangesin interfaceChangesCalculationOptions- Specified by:
setIncludeDependencyChangesin interfaceChangesCalculationOptionsEx- Parameters:
includeDependencyChanges- whether changes from dependencies should be computed- Returns:
- this object
-
setIncludeUnreachableChangesFromDetachedRoots
@NotNull public ChangesCalculationOptionsEx setIncludeUnreachableChangesFromDetachedRoots(@Nullable Boolean includeUnreachable)
- Specified by:
setIncludeUnreachableChangesFromDetachedRootsin interfaceChangesCalculationOptionsEx
-
setDetachedRootsChangesMinRegistrationDate
public void setDetachedRootsChangesMinRegistrationDate(@NotNull Date registrationDate)Description copied from interface:ChangesCalculationOptionsExSets the minimal VCS modification registration date (commits registered before this date won't be returned).- Specified by:
setDetachedRootsChangesMinRegistrationDatein interfaceChangesCalculationOptionsEx
-
getDetachedRootsChangesMinRegistrationDate
@Nullable public Date getDetachedRootsChangesMinRegistrationDate()
- Specified by:
getDetachedRootsChangesMinRegistrationDatein interfaceChangesCalculationOptionsEx
-
isIncludeUnreachableChangesFromDetachedRoots
@Nullable public Boolean isIncludeUnreachableChangesFromDetachedRoots()
- Specified by:
isIncludeUnreachableChangesFromDetachedRootsin interfaceChangesCalculationOptionsEx
-
getPreviousBuildsProvider
@NotNull public PreviousBuildsProvider getPreviousBuildsProvider()
- Specified by:
getPreviousBuildsProviderin interfaceChangesCalculationOptionsEx
-
getCallback
@NotNull public VcsModificationProcessor getCallback()
Description copied from interface:ChangesCalculationOptionsExReturns callback to invoke on computed changes- Specified by:
getCallbackin interfaceChangesCalculationOptionsEx- Returns:
- see above
-
setCallback
@NotNull public ChangesCalculationOptionsImpl setCallback(@NotNull VcsModificationProcessor callback)
Description copied from interface:ChangesCalculationOptionsExSets the callback to invoke on computed changes- Specified by:
setCallbackin interfaceChangesCalculationOptionsEx- Parameters:
callback- callback- Returns:
- this object
-
isReturnChangesIfNoPreviousBuildFound
public boolean isReturnChangesIfNoPreviousBuildFound()
Description copied from interface:ChangesCalculationOptionsReturns true if changes should be returned when no previous build is found- Specified by:
isReturnChangesIfNoPreviousBuildFoundin interfaceChangesCalculationOptions- Returns:
- see above
-
setReturnChangesIfNoPreviousBuildFound
@NotNull public ChangesCalculationOptionsImpl setReturnChangesIfNoPreviousBuildFound(boolean returnChangesIfNoPreviousBuildFound)
Description copied from interface:ChangesCalculationOptionsSpecifies whether changes should be return when previous build is not found, by default true. If set to false and previous build is not found, then changes calculation will return an empty collection of changes.- Specified by:
setReturnChangesIfNoPreviousBuildFoundin interfaceChangesCalculationOptions- Specified by:
setReturnChangesIfNoPreviousBuildFoundin interfaceChangesCalculationOptionsEx- Parameters:
returnChangesIfNoPreviousBuildFound- whether changes should be computed- Returns:
- this object
-
getDefaultBranchChangesMode
@Nullable public DefaultBranchChangesMode getDefaultBranchChangesMode()
Description copied from interface:ChangesCalculationOptionsExReturns custom default branch changes mode to use or null if mode configured in buildType should be used.- Specified by:
getDefaultBranchChangesModein interfaceChangesCalculationOptionsEx- Returns:
- see above
-
setDefaultBranchChangesMode
@NotNull public ChangesCalculationOptionsImpl setDefaultBranchChangesMode(@Nullable DefaultBranchChangesMode defaultBranchChangesMode)
Description copied from interface:ChangesCalculationOptionsExSets custom default branch changes mode to use, null means - use the mode configured in the buildType- Specified by:
setDefaultBranchChangesModein interfaceChangesCalculationOptionsEx- Parameters:
defaultBranchChangesMode- changes mode to use- Returns:
- this object
-
getShowSettingsChanges
@Nullable public Boolean getShowSettingsChanges()
Description copied from interface:ChangesCalculationOptionsExReturns true if settings changes should be shown, false if they should not be shown (even if enabled in versioned settings config), null if option from versioned settings config should be used- Specified by:
getShowSettingsChangesin interfaceChangesCalculationOptionsEx- Returns:
- see above
-
setShowSettingsChanges
@NotNull public ChangesCalculationOptionsImpl setShowSettingsChanges(@Nullable Boolean showSettingsChanges)
Description copied from interface:ChangesCalculationOptionsExSpecifies whether settings changes should be shown. Null means use option specified in versioned settings configuration.- Specified by:
setShowSettingsChangesin interfaceChangesCalculationOptionsEx- Parameters:
showSettingsChanges- whether the settings changes should be shown- Returns:
- this object
-
-