public class Job extends BaseModel
Modifier and Type | Method and Description |
---|---|
QueueReference |
build()
Trigger a build without parameters
|
QueueReference |
build(boolean crumbFlag)
Trigger a build with crumbFlag.
|
QueueReference |
build(Map<String,String> params)
Trigger a parameterized build
|
QueueReference |
build(Map<String,String> params,
boolean crumbFlag)
Trigger a parameterized build
|
JobWithDetails |
details() |
boolean |
equals(Object o) |
String |
getFileFromWorkspace(String fileName)
Get a file from workspace.
|
String |
getName() |
String |
getUrl() |
int |
hashCode() |
public String getName()
public String getUrl()
public JobWithDetails details() throws IOException
IOException
public String getFileFromWorkspace(String fileName) throws IOException
fileName
- The name of the file to download from workspace. You can
also access files which are in sub folders of the workspace.IOException
- in case of an error.public QueueReference build() throws IOException
QueueReference
for further analysis of the queued build.IOException
- in case of an error.public QueueReference build(boolean crumbFlag) throws IOException
crumbFlag
- true or false.QueueReference
for further analysis of the queued build.IOException
- in case of an error.public QueueReference build(Map<String,String> params) throws IOException
params
- the job parametersQueueReference
for further analysis of the queued build.IOException
- in case of an error.public QueueReference build(Map<String,String> params, boolean crumbFlag) throws IOException
params
- the job parameterscrumbFlag
- determines whether crumb flag is usedQueueReference
for further analysis of the queued build.IOException
- in case of an error.Copyright © 2017 JBoss by Red Hat. All rights reserved.