public class JenkinsTriggerHelper
extends java.lang.Object
JenkinsServer
etc.| 构造器和说明 |
|---|
JenkinsTriggerHelper(JenkinsServer server) |
JenkinsTriggerHelper(JenkinsServer server,
java.lang.Long retryInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
BuildWithDetails |
triggerJobAndWaitUntilFinished(java.lang.String jobName)
This method will trigger a build of the given job and will wait until the
builds is ended or if the build has been cancelled.
|
BuildWithDetails |
triggerJobAndWaitUntilFinished(java.lang.String jobName,
boolean crumbFlag)
This method will trigger a build of the given job and will wait until the
builds is ended or if the build has been cancelled.
|
BuildWithDetails |
triggerJobAndWaitUntilFinished(java.lang.String jobName,
java.util.Map<java.lang.String,java.lang.String> params)
This method will trigger a build of the given job and will wait until the
builds is ended or if the build has been cancelled.
|
BuildWithDetails |
triggerJobAndWaitUntilFinished(java.lang.String jobName,
java.util.Map<java.lang.String,java.lang.String> params,
boolean crumbFlag)
This method will trigger a build of the given job and will wait until the
builds is ended or if the build has been cancelled.
|
public JenkinsTriggerHelper(JenkinsServer server)
public JenkinsTriggerHelper(JenkinsServer server, java.lang.Long retryInterval)
public BuildWithDetails triggerJobAndWaitUntilFinished(java.lang.String jobName) throws java.io.IOException, java.lang.InterruptedException
jobName - The name of the job which should be triggered.BuildWithDetails.getResult()
BuildResult.CANCELLED. So you have to check first if the
build result is CANCELLED.java.io.IOException - in case of errors.java.lang.InterruptedException - In case of interrupts.public BuildWithDetails triggerJobAndWaitUntilFinished(java.lang.String jobName, java.util.Map<java.lang.String,java.lang.String> params) throws java.io.IOException, java.lang.InterruptedException
jobName - The name of the job which should be triggered.params - the job parametersBuildWithDetails.getResult()
BuildResult.CANCELLED. So you have to check first if the
build result is CANCELLED.java.io.IOException - in case of errors.java.lang.InterruptedException - In case of interrupts.public BuildWithDetails triggerJobAndWaitUntilFinished(java.lang.String jobName, java.util.Map<java.lang.String,java.lang.String> params, boolean crumbFlag) throws java.io.IOException, java.lang.InterruptedException
jobName - The name of the job which should be triggered.params - the job parameterscrumbFlag - set to true or false.BuildWithDetails.getResult()
BuildResult.CANCELLED. So you have to check first if the
build result is CANCELLED.java.io.IOException - in case of errors.java.lang.InterruptedException - In case of interrupts.public BuildWithDetails triggerJobAndWaitUntilFinished(java.lang.String jobName, boolean crumbFlag) throws java.io.IOException, java.lang.InterruptedException
jobName - The name of the job which should be triggered.crumbFlag - set to true or false.BuildWithDetails.getResult()
BuildResult.CANCELLED. So you have to check first if the
build result is CANCELLED.java.io.IOException - in case of errors.java.lang.InterruptedException - In case of interrupts.