Package jetbrains.buildServer.serverSide
Interface ChangesCalculationOptions
-
- All Known Subinterfaces:
ChangesCalculationOptionsEx
- All Known Implementing Classes:
ChangesCalculationOptionsImpl
public interface ChangesCalculationOptionsBuild changes calculation options. UseChangesCalculationOptionsFactory.create()to create options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangesCalculationOptionscopy()Returns a new copy of this object which can be changed independently from the originalBooleangetIncludeDependencyChanges()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.booleanisReturnChangesIfNoPreviousBuildFound()Returns true if changes should be returned when no previous build is foundChangesCalculationOptionssetIncludeDependencyChanges(Boolean includeDependencyChanges)Specifies whether changes from snapshot dependencies should be computed.ChangesCalculationOptionssetPrevBuildPolicy(SelectPrevBuildPolicy prevBuildPolicy)Sets previous build selection policy to use during changes calculation.ChangesCalculationOptionssetReturnChangesIfNoPreviousBuildFound(boolean returnChangesIfNoPreviousBuildFound)Specifies whether changes should be return when previous build is not found, by default true.
-
-
-
Method Detail
-
getPrevBuildPolicy
@NotNull SelectPrevBuildPolicy getPrevBuildPolicy()
Returns previous build selection policy to use during changes calculation.- Returns:
- see above
-
setPrevBuildPolicy
@NotNull ChangesCalculationOptions setPrevBuildPolicy(@NotNull SelectPrevBuildPolicy prevBuildPolicy)
Sets previous build selection policy to use during changes calculation. If not specified, then theSelectPrevBuildPolicy.SINCE_LAST_BUILDpolicy is used.- Parameters:
prevBuildPolicy- policy to use- Returns:
- options object
-
isReturnChangesIfNoPreviousBuildFound
boolean isReturnChangesIfNoPreviousBuildFound()
Returns true if changes should be returned when no previous build is found- Returns:
- see above
-
setReturnChangesIfNoPreviousBuildFound
@NotNull ChangesCalculationOptions setReturnChangesIfNoPreviousBuildFound(boolean returnChangesIfNoPreviousBuildFound)
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.- Parameters:
returnChangesIfNoPreviousBuildFound- whether changes should be computed- Returns:
- this object
-
getIncludeDependencyChanges
@Nullable 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.- Returns:
- see above
-
setIncludeDependencyChanges
ChangesCalculationOptions setIncludeDependencyChanges(@Nullable Boolean includeDependencyChanges)
Specifies whether changes from snapshot dependencies should be computed. Null means use option specified in build configuration.- Parameters:
includeDependencyChanges- whether changes from dependencies should be computed- Returns:
- this object
-
copy
@NotNull ChangesCalculationOptions copy()
Returns a new copy of this object which can be changed independently from the original- Returns:
- see above
-
-