public class Job extends BaseModel
| 限定符和类型 | 方法和说明 |
|---|---|
QueueReference |
build()
Trigger a build without parameters
|
QueueReference |
build(boolean crumbFlag)
Trigger a build with crumbFlag.
|
QueueReference |
build(java.util.Map<java.lang.String,java.lang.String> params)
Trigger a parameterized build
|
QueueReference |
build(java.util.Map<java.lang.String,java.lang.String> params,
boolean crumbFlag)
Trigger a parameterized build
|
JobWithDetails |
details() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFileFromWorkspace(java.lang.String fileName)
Get a file from workspace.
|
java.lang.String |
getName() |
java.lang.String |
getUrl() |
int |
hashCode() |
public java.lang.String getName()
public java.lang.String getUrl()
public JobWithDetails details() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getFileFromWorkspace(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the file to download from workspace. You can
also access files which are in sub folders of the workspace.java.io.IOException - in case of an error.public QueueReference build() throws java.io.IOException
QueueReference for further analysis of the queued build.java.io.IOException - in case of an error.public QueueReference build(boolean crumbFlag) throws java.io.IOException
crumbFlag - true or false.QueueReference for further analysis of the queued build.java.io.IOException - in case of an error.public QueueReference build(java.util.Map<java.lang.String,java.lang.String> params) throws java.io.IOException
params - the job parametersQueueReference for further analysis of the queued build.java.io.IOException - in case of an error.public QueueReference build(java.util.Map<java.lang.String,java.lang.String> params, boolean crumbFlag) throws java.io.IOException
params - the job parameterscrumbFlag - determines whether crumb flag is usedQueueReference for further analysis of the queued build.java.io.IOException - in case of an error.public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Object