public class Job extends BaseModel
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Trigger a build without parameters
|
void |
build(boolean crumbFlag)
Trigger a build with crumbFlag.
|
void |
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
IOExceptionpublic 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.IOExceptionpublic void build()
throws IOException
IOExceptionpublic void build(boolean crumbFlag)
throws IOException
crumbFlag - true or false.IOException - in case of an error.public void build(Map<String,String> params) throws IOException
params - the job parametersIOExceptionpublic QueueReference build(Map<String,String> params, boolean crumbFlag) throws IOException
params - the job parameterscrumbFlag - determines whether crumb flag is usedIOExceptionCopyright © 2016. All rights reserved.