public abstract class AbstractDownloader extends Object
| Constructor and Description |
|---|
AbstractDownloader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
convertFilterPattern(String filterPattern)
Converts the given filter pattern from a multi-line String to a comma-delimited string.
|
protected String |
escapeForScript(String input,
boolean isShell)
Returns an escaped version of the given input String for a Batch or Shell script.
|
abstract boolean |
getSource(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspaceFilePath,
hudson.model.TaskListener listener,
File changelogFile,
String filterPattern)
Download the mainframe sources specified in the Jenkins configuration.
|
protected String |
wrapInQuotes(String input,
boolean isShell)
Wraps the given input String in quotes for a Batch or Shell script.
|
protected String convertFilterPattern(String filterPattern)
filterPattern - the String dataset filterString of dataset filtersprotected String wrapInQuotes(String input, boolean isShell)
input - the String to wrap in quotesisShell - true if the script is a Shell script, false if it is a Batch scriptStringprotected String escapeForScript(String input, boolean isShell)
input - the String to escapeisShell - true if the script is a Shell script, false if it is a Batch scriptStringpublic abstract boolean getSource(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspaceFilePath,
hudson.model.TaskListener listener,
File changelogFile,
String filterPattern)
throws InterruptedException,
IOException
build - the current running Jenkins buildlauncher - the machine that the files will be checked out.workspaceFilePath - a directory to check out the source code.listener - build listenerchangelogFile - upon a successful return, this file should capture the changelog. When there's no change, this file should
contain an empty entryfilterPattern - source filter patternboolean if the build was successfulInterruptedExceptionIOExceptionCopyright © 2016–2017. All rights reserved.