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 ChangesCalculationOptionsImpl
copy()
Returns a new copy of this object which can be changed independently from the originalVcsModificationProcessor
getCallback()
Returns callback to invoke on computed changesDefaultBranchChangesMode
getDefaultBranchChangesMode()
Returns custom default branch changes mode to use or null if mode configured in buildType should be used.Date
getDetachedRootsChangesMinRegistrationDate()
Boolean
getIncludeDependencyChanges()
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.SelectPrevBuildPolicy
getPrevBuildPolicy()
Returns previous build selection policy to use during changes calculation.PreviousBuildsProvider
getPreviousBuildsProvider()
Boolean
getShowSettingsChanges()
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 usedBoolean
isIncludeUnreachableChangesFromDetachedRoots()
boolean
isReturnChangesIfNoPreviousBuildFound()
Returns true if changes should be returned when no previous build is foundChangesCalculationOptionsImpl
setCallback(VcsModificationProcessor callback)
Sets the callback to invoke on computed changesChangesCalculationOptionsImpl
setDefaultBranchChangesMode(DefaultBranchChangesMode defaultBranchChangesMode)
Sets custom default branch changes mode to use, null means - use the mode configured in the buildTypevoid
setDetachedRootsChangesMinRegistrationDate(Date registrationDate)
Sets the minimal VCS modification registration date (commits registered before this date won't be returned).ChangesCalculationOptionsImpl
setIncludeDependencyChanges(Boolean includeDependencyChanges)
Specifies whether changes from snapshot dependencies should be computed.ChangesCalculationOptionsEx
setIncludeUnreachableChangesFromDetachedRoots(Boolean includeUnreachable)
ChangesCalculationOptionsImpl
setPrevBuildPolicy(SelectPrevBuildPolicy prevBuildPolicy)
Sets previous build selection policy to use during changes calculation.ChangesCalculationOptionsImpl
setPreviousBuildsProvider(PreviousBuildsProvider previousBuildsProvider)
Sets custom provider of previous builds, this overwrites the effect ofChangesCalculationOptionsEx.setPrevBuildPolicy(SelectPrevBuildPolicy)
if it was called before.ChangesCalculationOptionsImpl
setReturnChangesIfNoPreviousBuildFound(boolean returnChangesIfNoPreviousBuildFound)
Specifies whether changes should be return when previous build is not found, by default true.ChangesCalculationOptionsImpl
setShowSettingsChanges(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:ChangesCalculationOptions
Returns a new copy of this object which can be changed independently from the original- Specified by:
copy
in interfaceChangesCalculationOptions
- Specified by:
copy
in interfaceChangesCalculationOptionsEx
- Returns:
- see above
-
getPrevBuildPolicy
@NotNull public SelectPrevBuildPolicy getPrevBuildPolicy()
Description copied from interface:ChangesCalculationOptions
Returns previous build selection policy to use during changes calculation.- Specified by:
getPrevBuildPolicy
in interfaceChangesCalculationOptions
- Returns:
- see above
-
setPrevBuildPolicy
@NotNull public ChangesCalculationOptionsImpl setPrevBuildPolicy(@NotNull SelectPrevBuildPolicy prevBuildPolicy)
Description copied from interface:ChangesCalculationOptions
Sets previous build selection policy to use during changes calculation. If not specified, then theSelectPrevBuildPolicy.SINCE_LAST_BUILD
policy is used.- Specified by:
setPrevBuildPolicy
in interfaceChangesCalculationOptions
- Specified by:
setPrevBuildPolicy
in interfaceChangesCalculationOptionsEx
- Parameters:
prevBuildPolicy
- policy to use- Returns:
- options object
-
setPreviousBuildsProvider
@NotNull public ChangesCalculationOptionsImpl setPreviousBuildsProvider(@NotNull PreviousBuildsProvider previousBuildsProvider)
Description copied from interface:ChangesCalculationOptionsEx
Sets custom provider of previous builds, this overwrites the effect ofChangesCalculationOptionsEx.setPrevBuildPolicy(SelectPrevBuildPolicy)
if it was called before.- Specified by:
setPreviousBuildsProvider
in interfaceChangesCalculationOptionsEx
- Returns:
- this object
-
getIncludeDependencyChanges
@Nullable public Boolean getIncludeDependencyChanges()
Description copied from interface:ChangesCalculationOptions
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.- Specified by:
getIncludeDependencyChanges
in interfaceChangesCalculationOptions
- Returns:
- see above
-
setIncludeDependencyChanges
@NotNull public ChangesCalculationOptionsImpl setIncludeDependencyChanges(@Nullable Boolean includeDependencyChanges)
Description copied from interface:ChangesCalculationOptions
Specifies whether changes from snapshot dependencies should be computed. Null means use option specified in build configuration.- Specified by:
setIncludeDependencyChanges
in interfaceChangesCalculationOptions
- Specified by:
setIncludeDependencyChanges
in interfaceChangesCalculationOptionsEx
- Parameters:
includeDependencyChanges
- whether changes from dependencies should be computed- Returns:
- this object
-
setIncludeUnreachableChangesFromDetachedRoots
@NotNull public ChangesCalculationOptionsEx setIncludeUnreachableChangesFromDetachedRoots(@Nullable Boolean includeUnreachable)
- Specified by:
setIncludeUnreachableChangesFromDetachedRoots
in interfaceChangesCalculationOptionsEx
-
setDetachedRootsChangesMinRegistrationDate
public void setDetachedRootsChangesMinRegistrationDate(@NotNull Date registrationDate)
Description copied from interface:ChangesCalculationOptionsEx
Sets the minimal VCS modification registration date (commits registered before this date won't be returned).- Specified by:
setDetachedRootsChangesMinRegistrationDate
in interfaceChangesCalculationOptionsEx
-
getDetachedRootsChangesMinRegistrationDate
@Nullable public Date getDetachedRootsChangesMinRegistrationDate()
- Specified by:
getDetachedRootsChangesMinRegistrationDate
in interfaceChangesCalculationOptionsEx
-
isIncludeUnreachableChangesFromDetachedRoots
@Nullable public Boolean isIncludeUnreachableChangesFromDetachedRoots()
- Specified by:
isIncludeUnreachableChangesFromDetachedRoots
in interfaceChangesCalculationOptionsEx
-
getPreviousBuildsProvider
@NotNull public PreviousBuildsProvider getPreviousBuildsProvider()
- Specified by:
getPreviousBuildsProvider
in interfaceChangesCalculationOptionsEx
-
getCallback
@NotNull public VcsModificationProcessor getCallback()
Description copied from interface:ChangesCalculationOptionsEx
Returns callback to invoke on computed changes- Specified by:
getCallback
in interfaceChangesCalculationOptionsEx
- Returns:
- see above
-
setCallback
@NotNull public ChangesCalculationOptionsImpl setCallback(@NotNull VcsModificationProcessor callback)
Description copied from interface:ChangesCalculationOptionsEx
Sets the callback to invoke on computed changes- Specified by:
setCallback
in interfaceChangesCalculationOptionsEx
- Parameters:
callback
- callback- Returns:
- this object
-
isReturnChangesIfNoPreviousBuildFound
public boolean isReturnChangesIfNoPreviousBuildFound()
Description copied from interface:ChangesCalculationOptions
Returns true if changes should be returned when no previous build is found- Specified by:
isReturnChangesIfNoPreviousBuildFound
in interfaceChangesCalculationOptions
- Returns:
- see above
-
setReturnChangesIfNoPreviousBuildFound
@NotNull public ChangesCalculationOptionsImpl setReturnChangesIfNoPreviousBuildFound(boolean returnChangesIfNoPreviousBuildFound)
Description copied from interface:ChangesCalculationOptions
Specifies 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:
setReturnChangesIfNoPreviousBuildFound
in interfaceChangesCalculationOptions
- Specified by:
setReturnChangesIfNoPreviousBuildFound
in interfaceChangesCalculationOptionsEx
- Parameters:
returnChangesIfNoPreviousBuildFound
- whether changes should be computed- Returns:
- this object
-
getDefaultBranchChangesMode
@Nullable public DefaultBranchChangesMode getDefaultBranchChangesMode()
Description copied from interface:ChangesCalculationOptionsEx
Returns custom default branch changes mode to use or null if mode configured in buildType should be used.- Specified by:
getDefaultBranchChangesMode
in interfaceChangesCalculationOptionsEx
- Returns:
- see above
-
setDefaultBranchChangesMode
@NotNull public ChangesCalculationOptionsImpl setDefaultBranchChangesMode(@Nullable DefaultBranchChangesMode defaultBranchChangesMode)
Description copied from interface:ChangesCalculationOptionsEx
Sets custom default branch changes mode to use, null means - use the mode configured in the buildType- Specified by:
setDefaultBranchChangesMode
in interfaceChangesCalculationOptionsEx
- Parameters:
defaultBranchChangesMode
- changes mode to use- Returns:
- this object
-
getShowSettingsChanges
@Nullable public Boolean getShowSettingsChanges()
Description copied from interface:ChangesCalculationOptionsEx
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 used- Specified by:
getShowSettingsChanges
in interfaceChangesCalculationOptionsEx
- Returns:
- see above
-
setShowSettingsChanges
@NotNull public ChangesCalculationOptionsImpl setShowSettingsChanges(@Nullable Boolean showSettingsChanges)
Description copied from interface:ChangesCalculationOptionsEx
Specifies whether settings changes should be shown. Null means use option specified in versioned settings configuration.- Specified by:
setShowSettingsChanges
in interfaceChangesCalculationOptionsEx
- Parameters:
showSettingsChanges
- whether the settings changes should be shown- Returns:
- this object
-
-