org.jenkinsci.plugins.rundeck.domain
Class RundeckUtils
java.lang.Object
org.jenkinsci.plugins.rundeck.domain.RundeckUtils
public class RundeckUtils
- extends Object
Helper methods for working with RunDeck
- Author:
- Vincent Behar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RundeckUtils
public RundeckUtils()
generateArgString
public static String generateArgString(Properties options)
- Generates an "argString" representing the given options. Format of the argString is
"-key1 value1 -key2 'value 2 with spaces'"
- Parameters:
options - to be converted
- Returns:
- a string. null if options is null, empty if there are no valid options.
parseJobRunResult
public static RundeckExecution parseJobRunResult(InputStream response)
throws RundeckApiException,
RundeckApiException.RundeckApiJobRunException
- Parse the result of a "job run" action
- Parameters:
response - as InputStream
- Returns:
- a
RundeckExecution instance - won't be null
- Throws:
RundeckApiException.RundeckApiJobRunException - in case of error when running the job
RundeckApiException - in case of error when reading the result
Copyright © 2004-2011. All Rights Reserved.