public class JenkinsTriggerHelper extends Object
JenkinsServer
etc.| Constructor and Description |
|---|
JenkinsTriggerHelper(JenkinsServer server) |
| Modifier and Type | Method and Description |
|---|---|
BuildWithDetails |
triggerJobAndWaitUntilFinished(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(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(String jobName,
Map<String,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(String jobName,
Map<String,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 BuildWithDetails triggerJobAndWaitUntilFinished(String jobName) throws IOException, 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.IOException - in case of errors.InterruptedException - In case of interrupts.public BuildWithDetails triggerJobAndWaitUntilFinished(String jobName, Map<String,String> params) throws IOException, 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.IOException - in case of errors.InterruptedException - In case of interrupts.public BuildWithDetails triggerJobAndWaitUntilFinished(String jobName, Map<String,String> params, boolean crumbFlag) throws IOException, 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.IOException - in case of errors.InterruptedException - In case of interrupts.public BuildWithDetails triggerJobAndWaitUntilFinished(String jobName, boolean crumbFlag) throws IOException, 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.IOException - in case of errors.InterruptedException - In case of interrupts.Copyright © 2016. All rights reserved.