|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface JobManagement
Interface to manage jobs, which the DSL needs to do.
Method Summary | |
---|---|
boolean
|
createOrUpdateConfig(java.lang.String jobName, java.lang.String config, boolean ignoreExisting)
Creates or updates the job config for the named Jenkins job with the config provided. |
java.lang.String
|
getConfig(java.lang.String jobName)
Gets (loads) the job configuration for the Jenkins job with the specified name. |
java.lang.String
|
getCredentialsId(java.lang.String credentialsDescription)
Returns the id of a Credentials object. |
java.io.PrintStream
|
getOutputStream()
Stream to write to, for stdout. |
java.util.Map
|
getParameters()
Map if variables that should be available to the script. |
void
|
queueJob(java.lang.String jobName)
Queue a job to run. |
java.lang.String
|
readFileInWorkspace(java.lang.String filePath)
|
java.io.InputStream
|
streamFileInWorkspace(java.lang.String filePath)
|
Method Detail |
---|
boolean createOrUpdateConfig(java.lang.String jobName, java.lang.String config, boolean ignoreExisting)
jobName
- the name of the new / updated jobconfig
- the new / updated job configignoreExisting
- do not update existing jobs
java.lang.String getConfig(java.lang.String jobName)
jobName
- the name of the job to look up
java.lang.String getCredentialsId(java.lang.String credentialsDescription)
credentialsDescription
- the description of the credentials to lookupnull
if no credentials could be found
java.io.PrintStream getOutputStream()
java.util.Map getParameters()
void queueJob(java.lang.String jobName)
java.lang.String readFileInWorkspace(java.lang.String filePath)
java.io.InputStream streamFileInWorkspace(java.lang.String filePath)
Groovy Documentation