Class KeepArtifacts
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.cleanup.v2019.preserves.KeepBuildDataPartImpl
-
- jetbrains.buildServer.serverSide.impl.cleanup.v2019.preserves.KeepArtifacts
-
- All Implemented Interfaces:
KeepBuildDataPart
,KeepFeatureParamsProvider
public final class KeepArtifacts extends KeepBuildDataPartImpl
Keep build history and some build artifacts according to provided pattern. IncludesKeepHistory
.- Since:
- 2019.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARTIFACT_PATTERNS_PARAM
static String
DO_NOT_KEEP_ANYTHING_DEFAULT_PATTERN
static String
KEEP_ALL_PATTERN
static String
TYPE
-
Fields inherited from interface jetbrains.buildServer.serverSide.impl.cleanup.v2019.settings.KeepFeatureParamsProvider
TYPE_PARAM
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getArtifactPatterns()
static String
getArtifactPatterns(Map<String,String> params)
static String
getDescription(List<String> artifactPatterns)
static KeepBuildDataPart
getInstance()
static KeepBuildDataPart
getInstance(String artifactPatterns)
static KeepBuildDataPart
getInstance(Map<String,String> params)
Map<String,String>
getOwnParams()
Provides own entity parameters to store.int
hashCode()
static boolean
isKeepAllPattern(String pattern)
String
toString()
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.cleanup.v2019.preserves.KeepBuildDataPartImpl
getLevel, getType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.impl.cleanup.v2019.settings.KeepFeatureParamsProvider
getParamsWithType
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
KEEP_ALL_PATTERN
public static final String KEEP_ALL_PATTERN
- See Also:
- Constant Field Values
-
DO_NOT_KEEP_ANYTHING_DEFAULT_PATTERN
public static final String DO_NOT_KEEP_ANYTHING_DEFAULT_PATTERN
- See Also:
- Constant Field Values
-
ARTIFACT_PATTERNS_PARAM
public static final String ARTIFACT_PATTERNS_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
@NotNull public static KeepBuildDataPart getInstance()
-
getInstance
@NotNull public static KeepBuildDataPart getInstance(@NotNull Map<String,String> params) throws IllegalRuleParamsException
- Throws:
IllegalRuleParamsException
-
getInstance
@NotNull public static KeepBuildDataPart getInstance(@NotNull String artifactPatterns)
-
isKeepAllPattern
public static boolean isKeepAllPattern(@NotNull String pattern)
-
getArtifactPatterns
@NotNull public String getArtifactPatterns()
-
toString
public String toString()
- Specified by:
toString
in classKeepBuildDataPartImpl
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKeepBuildDataPartImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKeepBuildDataPartImpl
-
getOwnParams
@NotNull public Map<String,String> getOwnParams()
Description copied from interface:KeepFeatureParamsProvider
Provides own entity parameters to store.
-
getArtifactPatterns
@NotNull public static String getArtifactPatterns(@NotNull Map<String,String> params) throws IllegalRuleParamsException
- Throws:
IllegalRuleParamsException
-
-