Package jetbrains.buildServer.serverSide
Interface ChangesCalculationOptions
-
public interface ChangesCalculationOptions
Build changes calculation options. UseChangesCalculationOptionsFactory.create()
to create options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangesCalculationOptions
copy()
Returns a new copy of this object which can be changed independently from the originaljava.lang.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.boolean
isReturnChangesIfNoPreviousBuildFound()
Returns true if changes should be returned when no previous build is foundChangesCalculationOptions
setIncludeDependencyChanges(java.lang.Boolean includeDependencyChanges)
Specifies whether changes from snapshot dependencies should be computed.ChangesCalculationOptions
setPrevBuildPolicy(SelectPrevBuildPolicy prevBuildPolicy)
Sets previous build selection policy to use during changes calculation.ChangesCalculationOptions
setReturnChangesIfNoPreviousBuildFound(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_BUILD
policy 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 java.lang.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 java.lang.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
-
-