public class BuildRequest extends KubernetesResource implements IBuildRequest
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, GROUP, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, VALUE, VERBS, VERSION| Constructor and Description |
|---|
BuildRequest(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> propertyKeys) |
| 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 git clone extraction of the source code the
build operates against
|
void |
setCommitId(String commitId)
Set the commit level for the git clone extraction of the source code the
build operates against
|
void |
setEnvironmentVariable(String name,
String value)
Sets an environment variable in this build request
|
accept, addLabel, asBoolean, asBoolean, asInt, asInt, asMap, asSet, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getMetadata, getModifiableCapabilities, getName, getNamespace, getNamespaceName, getNode, getPath, getProject, getPropertyKeys, getResourceVersion, has, hashCode, isAnnotatedWith, refresh, removeAnnotation, set, set, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, setNode, supports, toJson, toJson, toPrettyString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddLabel, getAnnotation, getAnnotations, getCapabilities, getCreationTimeStamp, getLabels, getMetadata, getName, getNamespace, getNamespaceName, getProject, getResourceVersion, isAnnotatedWith, removeAnnotation, setAnnotationaccept, getCapability, supportsgetApiVersiontoJson, toJsonpublic void setCommitId(String commitId)
IBuildRequestsetCommitId in interface IBuildRequestcommitId - the specific hexadecimal commit ID associated with a git log levelpublic void addBuildCause(String cause)
IBuildRequestaddBuildCause in interface IBuildRequestcause - the description to add to the list of causes for this requestpublic String getCommitId()
IBuildRequestgetCommitId in interface IBuildRequestpublic List<String> getBuildCauses()
IBuildRequestgetBuildCauses in interface IBuildRequestpublic void setEnvironmentVariable(String name, String value)
IBuildRequestsetEnvironmentVariable in interface IBuildRequestname - The name of the environment variable to setvalue - The value of the variableCopyright © 2020 Red Hat, Inc. All Rights Reserved.