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 StringARTIFACT_PATTERNS_PARAMstatic StringDO_NOT_KEEP_ANYTHING_DEFAULT_PATTERNstatic StringKEEP_ALL_PATTERNstatic StringTYPE-
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 booleanequals(Object o)StringgetArtifactPatterns()static StringgetArtifactPatterns(Map<String,String> params)static StringgetDescription(List<String> artifactPatterns)static KeepBuildDataPartgetInstance()static KeepBuildDataPartgetInstance(String artifactPatterns)static KeepBuildDataPartgetInstance(Map<String,String> params)Map<String,String>getOwnParams()Provides own entity parameters to store.inthashCode()static booleanisKeepAllPattern(String pattern)StringtoString()-
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:
toStringin classKeepBuildDataPartImpl
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classKeepBuildDataPartImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classKeepBuildDataPartImpl
-
getOwnParams
@NotNull public Map<String,String> getOwnParams()
Description copied from interface:KeepFeatureParamsProviderProvides own entity parameters to store.
-
getArtifactPatterns
@NotNull public static String getArtifactPatterns(@NotNull Map<String,String> params) throws IllegalRuleParamsException
- Throws:
IllegalRuleParamsException
-
-