public class BuildTrigger extends Object implements IBuildTriggerable
| Constructor and Description |
|---|
BuildTrigger(IBuildConfig buildConfig,
IClient client) |
BuildTrigger(IBuild build,
IClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuildCause(String cause)
Add a human readable short explanation of why this build request was issued
|
List<String> |
getBuildCauses()
Get the list of human readable short explanations of why this build request
was issued
|
String |
getCommitId()
Get the commit level for the SCM extraction of the source code the build
operates against
|
String |
getName()
Well known name of the capability
|
boolean |
isSupported()
Allow the implementation of the capability to determine if it is supported on
the OpenShift server.
|
void |
setCommitId(String commitId)
Set the commit level for the SCM extraction of the source code the build
operates against
|
void |
setEnvironmentVariable(String name,
String value)
Sets an environment variable for this build request
|
IBuild |
trigger()
Trigger a build based on a build config
|
IBuild |
trigger(String commitId)
Deprecated.
|
public BuildTrigger(IBuildConfig buildConfig, IClient client)
public boolean isSupported()
ICapabilityisSupported in interface ICapabilitypublic String getName()
ICapabilitygetName in interface ICapabilitypublic IBuild trigger()
IBuildTriggerabletrigger in interface IBuildTriggerable@Deprecated public IBuild trigger(String commitId)
IBuildTriggerabletrigger in interface IBuildTriggerablepublic void setCommitId(String commitId)
IBuildTriggerablesetCommitId in interface IBuildTriggerablecommitId - the specific hexadecimal commit ID associated with a SCM log levelpublic String getCommitId()
IBuildTriggerablegetCommitId in interface IBuildTriggerablepublic void addBuildCause(String cause)
IBuildTriggerableaddBuildCause in interface IBuildTriggerablecause - the description to add to the list of causes for this requestpublic List<String> getBuildCauses()
IBuildTriggerablegetBuildCauses in interface IBuildTriggerablepublic void setEnvironmentVariable(String name, String value)
IBuildTriggerablesetEnvironmentVariable in interface IBuildTriggerablename - The name of the environment variablevalue - The value of the environment variableCopyright © 2019 Red Hat, Inc. All Rights Reserved.