public class DefaultJenkinsClientImpl.DefaultBuildImpl extends Object implements JenkinsClient.Build
JenkinsClient.Build.| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels or aborts the build, depending on whether its
JenkinsClient.BuildState is
JenkinsClient.BuildState.QUEUED or JenkinsClient.BuildState.RUNNING. |
String |
getBuildName() |
int |
getBuildNumber() |
JenkinsClient.BuildState |
getBuildState()
Updates and returns the BuildState.
|
String |
getBuildUrl() |
String |
getFullConsole() |
String |
getJob() |
String |
getJobUrl() |
String |
getNextConsoleChunk() |
public JenkinsClient.BuildState getBuildState()
JenkinsClient.BuildgetBuildState in interface JenkinsClient.Buildpublic String getJobUrl()
getJobUrl in interface JenkinsClient.Buildpublic String getJob()
getJob in interface JenkinsClient.Buildpublic String getBuildUrl()
getBuildUrl in interface JenkinsClient.Buildpublic int getBuildNumber()
getBuildNumber in interface JenkinsClient.Buildpublic String getBuildName()
getBuildName in interface JenkinsClient.Buildpublic boolean cancel()
JenkinsClient.BuildJenkinsClient.BuildState is
JenkinsClient.BuildState.QUEUED or JenkinsClient.BuildState.RUNNING.
A build in any other BuildState cannot be cancelled and false is returned.
cancel in interface JenkinsClient.Buildpublic String getNextConsoleChunk()
getNextConsoleChunk in interface JenkinsClient.BuildJenkinsClient.BuildState.isOutOfQueue() or if no more data is available.public String getFullConsole()
getFullConsole in interface JenkinsClient.BuildJenkinsClient.BuildState.isOutOfQueue().Copyright © 2015–2016 AZYVA INC.. All rights reserved.