public final class BuildStep
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Build API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
BuildStep() |
| Modifier and Type | Method and Description |
|---|---|
BuildStep |
clone() |
List<Integer> |
getAllowExitCodes()
Allow this build step to fail without failing the entire build if and only if the exit code is
one of the specified codes.
|
Boolean |
getAllowFailure()
Allow this build step to fail without failing the entire build.
|
List<String> |
getArgs()
A list of arguments that will be presented to the step when it is started.
|
Boolean |
getAutomapSubstitutions()
Option to include built-in and custom substitutions as env variables for this build step.
|
String |
getDir()
Working directory to use when running this step's container.
|
String |
getEntrypoint()
Entrypoint to be used instead of the build step image's default entrypoint.
|
List<String> |
getEnv()
A list of environment variable definitions to be used when running a step.
|
Integer |
getExitCode()
Output only.
|
String |
getId()
Unique identifier for this build step, used in `wait_for` to reference this build step as a
dependency.
|
String |
getName()
Required.
|
TimeSpan |
getPullTiming()
Output only.
|
String |
getScript()
A shell script to be executed in the step.
|
List<String> |
getSecretEnv()
A list of environment variables which are encrypted using a Cloud Key Management Service crypto
key.
|
String |
getStatus()
Output only.
|
String |
getTimeout()
Time limit for executing this build step.
|
TimeSpan |
getTiming()
Output only.
|
List<Volume> |
getVolumes()
List of volumes to mount into the build step.
|
List<String> |
getWaitFor()
The ID(s) of the step(s) that this build step depends on.
|
BuildStep |
set(String fieldName,
Object value) |
BuildStep |
setAllowExitCodes(List<Integer> allowExitCodes)
Allow this build step to fail without failing the entire build if and only if the exit code is
one of the specified codes.
|
BuildStep |
setAllowFailure(Boolean allowFailure)
Allow this build step to fail without failing the entire build.
|
BuildStep |
setArgs(List<String> args)
A list of arguments that will be presented to the step when it is started.
|
BuildStep |
setAutomapSubstitutions(Boolean automapSubstitutions)
Option to include built-in and custom substitutions as env variables for this build step.
|
BuildStep |
setDir(String dir)
Working directory to use when running this step's container.
|
BuildStep |
setEntrypoint(String entrypoint)
Entrypoint to be used instead of the build step image's default entrypoint.
|
BuildStep |
setEnv(List<String> env)
A list of environment variable definitions to be used when running a step.
|
BuildStep |
setExitCode(Integer exitCode)
Output only.
|
BuildStep |
setId(String id)
Unique identifier for this build step, used in `wait_for` to reference this build step as a
dependency.
|
BuildStep |
setName(String name)
Required.
|
BuildStep |
setPullTiming(TimeSpan pullTiming)
Output only.
|
BuildStep |
setScript(String script)
A shell script to be executed in the step.
|
BuildStep |
setSecretEnv(List<String> secretEnv)
A list of environment variables which are encrypted using a Cloud Key Management Service crypto
key.
|
BuildStep |
setStatus(String status)
Output only.
|
BuildStep |
setTimeout(String timeout)
Time limit for executing this build step.
|
BuildStep |
setTiming(TimeSpan timing)
Output only.
|
BuildStep |
setVolumes(List<Volume> volumes)
List of volumes to mount into the build step.
|
BuildStep |
setWaitFor(List<String> waitFor)
The ID(s) of the step(s) that this build step depends on.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<Integer> getAllowExitCodes()
null for nonepublic BuildStep setAllowExitCodes(List<Integer> allowExitCodes)
allowExitCodes - allowExitCodes or null for nonepublic Boolean getAllowFailure()
null for nonepublic BuildStep setAllowFailure(Boolean allowFailure)
allowFailure - allowFailure or null for nonepublic List<String> getArgs()
null for nonepublic BuildStep setArgs(List<String> args)
args - args or null for nonepublic Boolean getAutomapSubstitutions()
null for nonepublic BuildStep setAutomapSubstitutions(Boolean automapSubstitutions)
automapSubstitutions - automapSubstitutions or null for nonepublic String getDir()
null for nonepublic BuildStep setDir(String dir)
dir - dir or null for nonepublic String getEntrypoint()
null for nonepublic BuildStep setEntrypoint(String entrypoint)
entrypoint - entrypoint or null for nonepublic List<String> getEnv()
null for nonepublic BuildStep setEnv(List<String> env)
env - env or null for nonepublic Integer getExitCode()
null for nonepublic BuildStep setExitCode(Integer exitCode)
exitCode - exitCode or null for nonepublic String getId()
null for nonepublic BuildStep setId(String id)
id - id or null for nonepublic String getName()
null for nonepublic BuildStep setName(String name)
name - name or null for nonepublic TimeSpan getPullTiming()
null for nonepublic BuildStep setPullTiming(TimeSpan pullTiming)
pullTiming - pullTiming or null for nonepublic String getScript()
null for nonepublic BuildStep setScript(String script)
script - script or null for nonepublic List<String> getSecretEnv()
null for nonepublic BuildStep setSecretEnv(List<String> secretEnv)
secretEnv - secretEnv or null for nonepublic String getStatus()
null for nonepublic BuildStep setStatus(String status)
status - status or null for nonepublic String getTimeout()
null for nonepublic BuildStep setTimeout(String timeout)
timeout - timeout or null for nonepublic TimeSpan getTiming()
null for nonepublic BuildStep setTiming(TimeSpan timing)
timing - timing or null for nonepublic List<Volume> getVolumes()
null for nonepublic BuildStep setVolumes(List<Volume> volumes)
volumes - volumes or null for nonepublic List<String> getWaitFor()
null for nonepublic BuildStep setWaitFor(List<String> waitFor)
waitFor - waitFor or null for nonepublic BuildStep set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic BuildStep clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.