public class BuildConfig extends KubernetesResource implements IBuildConfig
Modifier and Type | Field and Description |
---|---|
static String |
BUILDCONFIG_DOCKER_BASEIMAGE |
static String |
BUILDCONFIG_DOCKER_CONTEXTDIR |
static String |
BUILDCONFIG_DOCKER_NOCACHE |
static String |
BUILDCONFIG_TYPE |
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, KIND, LABELS, METADATA_NAME, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, TYPE, VALUE
Constructor and Description |
---|
BuildConfig(org.jboss.dmr.ModelNode node,
IClient client,
Map<String,String[]> overrideProperties) |
Modifier and Type | Method and Description |
---|---|
void |
addBuildTrigger(IBuildTrigger trigger)
Add a trigger to the list of triggers for this build.
|
<T extends IBuildSource> |
getBuildSource()
Returns the source info of the build
|
<T extends IBuildStrategy> |
getBuildStrategy()
Returns the strategy to for building the source
|
List<IBuildTrigger> |
getBuildTriggers()
Returns the policies which will trigger a build
|
String |
getOutputRepositoryName()
Retrieves the name of the repository where the
resulting build image will be pushed
|
String |
getSourceURI()
Returns the source URL for a build
|
void |
setBuildSource(IBuildSource source)
Set the source for the build.
|
void |
setBuildStrategy(IBuildStrategy strategy)
Set the strategy for how the build should be built.
|
void |
setOutput(DockerImageURI imageUri) |
accept, addLabel, asBoolean, asInt, asInt, asMap, asString, asString, equals, get, get, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCapability, getClient, getCreationTimeStamp, getEnvMap, getKind, getLabels, getModifiableCapabilities, getName, getNamespace, getNode, getPath, getProject, hashCode, isAnnotatedWith, refresh, set, set, set, set, set, set, set, setAnnotation, setEnvMap, setName, setNamespace, supports, toJson, toJson, toPrettyString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addLabel, getAnnotation, getAnnotations, getApiVersion, getCapabilities, getCreationTimeStamp, getKind, getLabels, getName, getNamespace, getProject, isAnnotatedWith, setAnnotation, toJson, toJson
accept, getCapability, supports
public static final String BUILDCONFIG_TYPE
public static final String BUILDCONFIG_DOCKER_CONTEXTDIR
public static final String BUILDCONFIG_DOCKER_NOCACHE
public static final String BUILDCONFIG_DOCKER_BASEIMAGE
public List<IBuildTrigger> getBuildTriggers()
IBuildConfig
getBuildTriggers
in interface IBuildConfig
public void addBuildTrigger(IBuildTrigger trigger)
IBuildConfig
addBuildTrigger
in interface IBuildConfig
public String getOutputRepositoryName()
IBuildConfig
getOutputRepositoryName
in interface IBuildConfig
public String getSourceURI()
IBuildConfig
getSourceURI
in interface IBuildConfig
public <T extends IBuildSource> T getBuildSource()
IBuildConfig
getBuildSource
in interface IBuildConfig
public void setBuildSource(IBuildSource source)
IBuildConfig
setBuildSource
in interface IBuildConfig
public void setBuildStrategy(IBuildStrategy strategy)
IBuildConfig
setBuildStrategy
in interface IBuildConfig
public void setOutput(DockerImageURI imageUri)
public <T extends IBuildStrategy> T getBuildStrategy()
IBuildConfig
getBuildStrategy
in interface IBuildConfig
Copyright © 2016 Red Hat, Inc. All rights reserved.