public class PublisherStepExecution extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
PATTERNS
Patterns constant
|
static String |
VERSION_PATTERN
Version pattern constant
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Map<String,String>> |
autoDetectPlugin()
Detect plugins
|
protected void |
breakBuild()
Break build
|
protected void |
checkCredentials()
Check credentials
|
protected void |
checkPluginsVersions(List<Map<String,String>> plugins)
Check plugins versions
|
protected MatchResult |
getNameAndVersion(String path)
Get name and version
|
protected List<Map<String,String>> |
getPlugins()
Get plugins
|
protected List<Map<String,String>> |
getPluginsFromPaths()
Get plugins from paths
|
protected void |
getPluginsResults()
Get plugins results
|
protected String |
getScanId(String text)
Get scan id from text
|
boolean |
run()
Run publisher step execution
|
protected String |
runCommand(hudson.util.ArgumentListBuilder command)
Run command
|
protected void |
runPlugins(List<Map<String,String>> plugins)
Run plugins
|
public static final String VERSION_PATTERN
protected String getScanId(String text)
text - textprotected MatchResult getNameAndVersion(String path) throws PublisherStepExecutionError
path - pathPublisherStepExecutionError - PublisherStepExecutionErrorprotected String runCommand(hudson.util.ArgumentListBuilder command) throws PublisherStepExecutionError
command - commandPublisherStepExecutionError - PublisherStepExecutionErrorprotected List<Map<String,String>> autoDetectPlugin() throws PublisherStepExecutionError
PublisherStepExecutionError - PublisherStepExecutionErrorprotected List<Map<String,String>> getPluginsFromPaths() throws PublisherStepExecutionError
PublisherStepExecutionError - PublisherStepExecutionErrorprotected List<Map<String,String>> getPlugins() throws PublisherStepExecutionError
PublisherStepExecutionError - PublisherStepExecutionErrorprotected void checkPluginsVersions(List<Map<String,String>> plugins) throws PublisherStepExecutionError
plugins - pluginsPublisherStepExecutionError - PublisherStepExecutionErrorprotected void checkCredentials()
throws PublisherStepExecutionError
PublisherStepExecutionError - PublisherStepExecutionErrorprotected void runPlugins(List<Map<String,String>> plugins) throws PublisherStepExecutionError
plugins - pluginsPublisherStepExecutionError - PublisherStepExecutionErrorprotected void getPluginsResults()
throws PublisherStepExecutionError
PublisherStepExecutionError - PublisherStepExecutionErrorprotected void breakBuild()
throws PublisherStepExecutionError
PublisherStepExecutionError - PublisherStepExecutionErrorpublic boolean run()
Copyright © 2016–2019 EACG, Enterprise Architecture Consulting Group GmbH. All rights reserved.