Package io.jenkins.plugins.ksm.log
Class KsmStepConsoleLogFilter
- java.lang.Object
-
- hudson.console.ConsoleLogFilter
-
- io.jenkins.plugins.ksm.log.KsmStepConsoleLogFilter
-
- All Implemented Interfaces:
ExtensionPoint
,Serializable
public class KsmStepConsoleLogFilter extends ConsoleLogFilter implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description KsmStepConsoleLogFilter(String charsetName, List<String> secretList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
decorateLogger(Run run, OutputStream logger)
String
getSecretRegexPattern()
Make an "or" regular express of descending secret lengths.-
Methods inherited from class hudson.console.ConsoleLogFilter
all, decorateLogger, decorateLogger
-
-
-
-
Method Detail
-
decorateLogger
public OutputStream decorateLogger(Run run, OutputStream logger)
- Overrides:
decorateLogger
in classConsoleLogFilter
-
getSecretRegexPattern
public String getSecretRegexPattern()
Make an "or" regular express of descending secret lengths. This is so we redact the full secret and not leave particles. ie PASS vs PASSWORD. If PASS was redacted before PASSWORD, it would leave WORD in the console log.- Returns:
- regular expression "or" string
-
-