Package com.google.cloudbuild.v1
Class BuildStep.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
com.google.cloudbuild.v1.BuildStep.Builder
- All Implemented Interfaces:
BuildStepOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BuildStep
public static final class BuildStep.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
implements BuildStepOrBuilder
A step in the build pipeline.Protobuf type
google.devtools.cloudbuild.v1.BuildStep-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowExitCodes(Iterable<? extends Integer> values) Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.addAllArgs(Iterable<String> values) A list of arguments that will be presented to the step when it is started.A list of environment variable definitions to be used when running a step.addAllowExitCodes(int value) Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.addAllSecretEnv(Iterable<String> values) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.addAllVolumes(Iterable<? extends Volume> values) List of volumes to mount into the build step.addAllWaitFor(Iterable<String> values) The ID(s) of the step(s) that this build step depends on.A list of arguments that will be presented to the step when it is started.addArgsBytes(com.google.protobuf.ByteString value) A list of arguments that will be presented to the step when it is started.A list of environment variable definitions to be used when running a step.addEnvBytes(com.google.protobuf.ByteString value) A list of environment variable definitions to be used when running a step.addSecretEnv(String value) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.addSecretEnvBytes(com.google.protobuf.ByteString value) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.addVolumes(int index, Volume value) List of volumes to mount into the build step.addVolumes(int index, Volume.Builder builderForValue) List of volumes to mount into the build step.addVolumes(Volume value) List of volumes to mount into the build step.addVolumes(Volume.Builder builderForValue) List of volumes to mount into the build step.List of volumes to mount into the build step.addVolumesBuilder(int index) List of volumes to mount into the build step.addWaitFor(String value) The ID(s) of the step(s) that this build step depends on.addWaitForBytes(com.google.protobuf.ByteString value) The ID(s) of the step(s) that this build step depends on.build()clear()Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.Allow this build step to fail without failing the entire build.A list of arguments that will be presented to the step when it is started.Option to include built-in and custom substitutions as env variables for this build step.clearDir()Working directory to use when running this step's container.Entrypoint to be used instead of the build step image's default entrypoint.clearEnv()A list of environment variable definitions to be used when running a step.Output only.clearId()Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.Required.Output only.A shell script to be executed in the step.A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.Output only.Time limit for executing this build step.Output only.List of volumes to mount into the build step.The ID(s) of the step(s) that this build step depends on.intgetAllowExitCodes(int index) Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.intAllow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.booleanAllow this build step to fail without failing the entire build.getArgs(int index) A list of arguments that will be presented to the step when it is started.com.google.protobuf.ByteStringgetArgsBytes(int index) A list of arguments that will be presented to the step when it is started.intA list of arguments that will be presented to the step when it is started.com.google.protobuf.ProtocolStringListA list of arguments that will be presented to the step when it is started.booleanOption to include built-in and custom substitutions as env variables for this build step.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDir()Working directory to use when running this step's container.com.google.protobuf.ByteStringWorking directory to use when running this step's container.Entrypoint to be used instead of the build step image's default entrypoint.com.google.protobuf.ByteStringEntrypoint to be used instead of the build step image's default entrypoint.getEnv(int index) A list of environment variable definitions to be used when running a step.com.google.protobuf.ByteStringgetEnvBytes(int index) A list of environment variable definitions to be used when running a step.intA list of environment variable definitions to be used when running a step.com.google.protobuf.ProtocolStringListA list of environment variable definitions to be used when running a step.intOutput only.getId()Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.com.google.protobuf.ByteStringUnique identifier for this build step, used in `wait_for` to reference this build step as a dependency.getName()Required.com.google.protobuf.ByteStringRequired.Output only.Output only.Output only.A shell script to be executed in the step.com.google.protobuf.ByteStringA shell script to be executed in the step.getSecretEnv(int index) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.com.google.protobuf.ByteStringgetSecretEnvBytes(int index) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.intA list of environment variables which are encrypted using a Cloud Key Management Service crypto key.com.google.protobuf.ProtocolStringListA list of environment variables which are encrypted using a Cloud Key Management Service crypto key.Output only.intOutput only.com.google.protobuf.DurationTime limit for executing this build step.com.google.protobuf.Duration.BuilderTime limit for executing this build step.com.google.protobuf.DurationOrBuilderTime limit for executing this build step.Output only.Output only.Output only.getVolumes(int index) List of volumes to mount into the build step.getVolumesBuilder(int index) List of volumes to mount into the build step.List of volumes to mount into the build step.intList of volumes to mount into the build step.List of volumes to mount into the build step.getVolumesOrBuilder(int index) List of volumes to mount into the build step.List<? extends VolumeOrBuilder>List of volumes to mount into the build step.getWaitFor(int index) The ID(s) of the step(s) that this build step depends on.com.google.protobuf.ByteStringgetWaitForBytes(int index) The ID(s) of the step(s) that this build step depends on.intThe ID(s) of the step(s) that this build step depends on.com.google.protobuf.ProtocolStringListThe ID(s) of the step(s) that this build step depends on.booleanOption to include built-in and custom substitutions as env variables for this build step.booleanOutput only.booleanTime limit for executing this build step.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePullTiming(TimeSpan value) Output only.mergeTimeout(com.google.protobuf.Duration value) Time limit for executing this build step.mergeTiming(TimeSpan value) Output only.removeVolumes(int index) List of volumes to mount into the build step.setAllowExitCodes(int index, int value) Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes.setAllowFailure(boolean value) Allow this build step to fail without failing the entire build.A list of arguments that will be presented to the step when it is started.setAutomapSubstitutions(boolean value) Option to include built-in and custom substitutions as env variables for this build step.Working directory to use when running this step's container.setDirBytes(com.google.protobuf.ByteString value) Working directory to use when running this step's container.setEntrypoint(String value) Entrypoint to be used instead of the build step image's default entrypoint.setEntrypointBytes(com.google.protobuf.ByteString value) Entrypoint to be used instead of the build step image's default entrypoint.A list of environment variable definitions to be used when running a step.setExitCode(int value) Output only.Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.setIdBytes(com.google.protobuf.ByteString value) Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setPullTiming(TimeSpan value) Output only.setPullTiming(TimeSpan.Builder builderForValue) Output only.A shell script to be executed in the step.setScriptBytes(com.google.protobuf.ByteString value) A shell script to be executed in the step.setSecretEnv(int index, String value) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key.setStatus(Build.Status value) Output only.setStatusValue(int value) Output only.setTimeout(com.google.protobuf.Duration value) Time limit for executing this build step.setTimeout(com.google.protobuf.Duration.Builder builderForValue) Time limit for executing this build step.Output only.setTiming(TimeSpan.Builder builderForValue) Output only.setVolumes(int index, Volume value) List of volumes to mount into the build step.setVolumes(int index, Volume.Builder builderForValue) List of volumes to mount into the build step.setWaitFor(int index, String value) The ID(s) of the step(s) that this build step depends on.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildStep.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BuildStep.Builder>
-
mergeFrom
public BuildStep.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BuildStep.Builder>- Throws:
IOException
-
getName
Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
string name = 1;- Specified by:
getNamein interfaceBuildStepOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
string name = 1;- Specified by:
getNameBytesin interfaceBuildStepOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getEnvList
public com.google.protobuf.ProtocolStringList getEnvList()A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Specified by:
getEnvListin interfaceBuildStepOrBuilder- Returns:
- A list containing the env.
-
getEnvCount
public int getEnvCount()A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Specified by:
getEnvCountin interfaceBuildStepOrBuilder- Returns:
- The count of env.
-
getEnv
A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Specified by:
getEnvin interfaceBuildStepOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The env at the given index.
-
getEnvBytes
public com.google.protobuf.ByteString getEnvBytes(int index) A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Specified by:
getEnvBytesin interfaceBuildStepOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the env at the given index.
-
setEnv
A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Parameters:
index- The index to set the value at.value- The env to set.- Returns:
- This builder for chaining.
-
addEnv
A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Parameters:
value- The env to add.- Returns:
- This builder for chaining.
-
addAllEnv
A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Parameters:
values- The env to add.- Returns:
- This builder for chaining.
-
clearEnv
A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Returns:
- This builder for chaining.
-
addEnvBytes
A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
repeated string env = 2;- Parameters:
value- The bytes of the env to add.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Specified by:
getArgsListin interfaceBuildStepOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Specified by:
getArgsCountin interfaceBuildStepOrBuilder- Returns:
- The count of args.
-
getArgs
A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Specified by:
getArgsin interfaceBuildStepOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Specified by:
getArgsBytesin interfaceBuildStepOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Returns:
- This builder for chaining.
-
addArgsBytes
A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
repeated string args = 3;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getDir
Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
string dir = 4;- Specified by:
getDirin interfaceBuildStepOrBuilder- Returns:
- The dir.
-
getDirBytes
public com.google.protobuf.ByteString getDirBytes()Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
string dir = 4;- Specified by:
getDirBytesin interfaceBuildStepOrBuilder- Returns:
- The bytes for dir.
-
setDir
Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
string dir = 4;- Parameters:
value- The dir to set.- Returns:
- This builder for chaining.
-
clearDir
Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
string dir = 4;- Returns:
- This builder for chaining.
-
setDirBytes
Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
string dir = 4;- Parameters:
value- The bytes for dir to set.- Returns:
- This builder for chaining.
-
getId
Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
string id = 5;- Specified by:
getIdin interfaceBuildStepOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
string id = 5;- Specified by:
getIdBytesin interfaceBuildStepOrBuilder- Returns:
- The bytes for id.
-
setId
Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
string id = 5;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
string id = 5;- Returns:
- This builder for chaining.
-
setIdBytes
Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
string id = 5;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getWaitForList
public com.google.protobuf.ProtocolStringList getWaitForList()The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Specified by:
getWaitForListin interfaceBuildStepOrBuilder- Returns:
- A list containing the waitFor.
-
getWaitForCount
public int getWaitForCount()The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Specified by:
getWaitForCountin interfaceBuildStepOrBuilder- Returns:
- The count of waitFor.
-
getWaitFor
The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Specified by:
getWaitForin interfaceBuildStepOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The waitFor at the given index.
-
getWaitForBytes
public com.google.protobuf.ByteString getWaitForBytes(int index) The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Specified by:
getWaitForBytesin interfaceBuildStepOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the waitFor at the given index.
-
setWaitFor
The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Parameters:
index- The index to set the value at.value- The waitFor to set.- Returns:
- This builder for chaining.
-
addWaitFor
The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Parameters:
value- The waitFor to add.- Returns:
- This builder for chaining.
-
addAllWaitFor
The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Parameters:
values- The waitFor to add.- Returns:
- This builder for chaining.
-
clearWaitFor
The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Returns:
- This builder for chaining.
-
addWaitForBytes
The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
repeated string wait_for = 6;- Parameters:
value- The bytes of the waitFor to add.- Returns:
- This builder for chaining.
-
getEntrypoint
Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.
string entrypoint = 7;- Specified by:
getEntrypointin interfaceBuildStepOrBuilder- Returns:
- The entrypoint.
-
getEntrypointBytes
public com.google.protobuf.ByteString getEntrypointBytes()Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.
string entrypoint = 7;- Specified by:
getEntrypointBytesin interfaceBuildStepOrBuilder- Returns:
- The bytes for entrypoint.
-
setEntrypoint
Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.
string entrypoint = 7;- Parameters:
value- The entrypoint to set.- Returns:
- This builder for chaining.
-
clearEntrypoint
Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.
string entrypoint = 7;- Returns:
- This builder for chaining.
-
setEntrypointBytes
Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.
string entrypoint = 7;- Parameters:
value- The bytes for entrypoint to set.- Returns:
- This builder for chaining.
-
getSecretEnvList
public com.google.protobuf.ProtocolStringList getSecretEnvList()A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Specified by:
getSecretEnvListin interfaceBuildStepOrBuilder- Returns:
- A list containing the secretEnv.
-
getSecretEnvCount
public int getSecretEnvCount()A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Specified by:
getSecretEnvCountin interfaceBuildStepOrBuilder- Returns:
- The count of secretEnv.
-
getSecretEnv
A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Specified by:
getSecretEnvin interfaceBuildStepOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The secretEnv at the given index.
-
getSecretEnvBytes
public com.google.protobuf.ByteString getSecretEnvBytes(int index) A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Specified by:
getSecretEnvBytesin interfaceBuildStepOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the secretEnv at the given index.
-
setSecretEnv
A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Parameters:
index- The index to set the value at.value- The secretEnv to set.- Returns:
- This builder for chaining.
-
addSecretEnv
A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Parameters:
value- The secretEnv to add.- Returns:
- This builder for chaining.
-
addAllSecretEnv
A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Parameters:
values- The secretEnv to add.- Returns:
- This builder for chaining.
-
clearSecretEnv
A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Returns:
- This builder for chaining.
-
addSecretEnvBytes
A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.
repeated string secret_env = 8;- Parameters:
value- The bytes of the secretEnv to add.- Returns:
- This builder for chaining.
-
getVolumesList
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;- Specified by:
getVolumesListin interfaceBuildStepOrBuilder
-
getVolumesCount
public int getVolumesCount()List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;- Specified by:
getVolumesCountin interfaceBuildStepOrBuilder
-
getVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;- Specified by:
getVolumesin interfaceBuildStepOrBuilder
-
setVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
setVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
addVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
addVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
addVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
addVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
addAllVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
clearVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
removeVolumes
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
getVolumesBuilder
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
getVolumesOrBuilder
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;- Specified by:
getVolumesOrBuilderin interfaceBuildStepOrBuilder
-
getVolumesOrBuilderList
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9;- Specified by:
getVolumesOrBuilderListin interfaceBuildStepOrBuilder
-
addVolumesBuilder
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
addVolumesBuilder
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
getVolumesBuilderList
List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
repeated .google.devtools.cloudbuild.v1.Volume volumes = 9; -
hasTiming
public boolean hasTiming()Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTimingin interfaceBuildStepOrBuilder- Returns:
- Whether the timing field is set.
-
getTiming
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTimingin interfaceBuildStepOrBuilder- Returns:
- The timing.
-
setTiming
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setTiming
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeTiming
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearTiming
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTimingBuilder
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getTimingOrBuilder
Output only. Stores timing information for executing this build step.
.google.devtools.cloudbuild.v1.TimeSpan timing = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTimingOrBuilderin interfaceBuildStepOrBuilder
-
hasPullTiming
public boolean hasPullTiming()Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPullTimingin interfaceBuildStepOrBuilder- Returns:
- Whether the pullTiming field is set.
-
getPullTiming
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPullTimingin interfaceBuildStepOrBuilder- Returns:
- The pullTiming.
-
setPullTiming
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPullTiming
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergePullTiming
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPullTiming
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPullTimingBuilder
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPullTimingOrBuilder
Output only. Stores timing information for pulling this build step's builder image only.
.google.devtools.cloudbuild.v1.TimeSpan pull_timing = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPullTimingOrBuilderin interfaceBuildStepOrBuilder
-
hasTimeout
public boolean hasTimeout()Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11;- Specified by:
hasTimeoutin interfaceBuildStepOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11;- Specified by:
getTimeoutin interfaceBuildStepOrBuilder- Returns:
- The timeout.
-
setTimeout
Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11; -
setTimeout
Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11; -
mergeTimeout
Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11; -
clearTimeout
Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11; -
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
.google.protobuf.Duration timeout = 11;- Specified by:
getTimeoutOrBuilderin interfaceBuildStepOrBuilder
-
getStatusValue
public int getStatusValue()Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
.google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceBuildStepOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
.google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
.google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceBuildStepOrBuilder- Returns:
- The status.
-
setStatus
Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
.google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
.google.devtools.cloudbuild.v1.Build.Status status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAllowFailure
public boolean getAllowFailure()Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
bool allow_failure = 14;- Specified by:
getAllowFailurein interfaceBuildStepOrBuilder- Returns:
- The allowFailure.
-
setAllowFailure
Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
bool allow_failure = 14;- Parameters:
value- The allowFailure to set.- Returns:
- This builder for chaining.
-
clearAllowFailure
Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.
bool allow_failure = 14;- Returns:
- This builder for chaining.
-
getExitCode
public int getExitCode()Output only. Return code from running the step.
int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExitCodein interfaceBuildStepOrBuilder- Returns:
- The exitCode.
-
setExitCode
Output only. Return code from running the step.
int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The exitCode to set.- Returns:
- This builder for chaining.
-
clearExitCode
Output only. Return code from running the step.
int32 exit_code = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getAllowExitCodesList
Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Specified by:
getAllowExitCodesListin interfaceBuildStepOrBuilder- Returns:
- A list containing the allowExitCodes.
-
getAllowExitCodesCount
public int getAllowExitCodesCount()Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Specified by:
getAllowExitCodesCountin interfaceBuildStepOrBuilder- Returns:
- The count of allowExitCodes.
-
getAllowExitCodes
public int getAllowExitCodes(int index) Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Specified by:
getAllowExitCodesin interfaceBuildStepOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowExitCodes at the given index.
-
setAllowExitCodes
Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Parameters:
index- The index to set the value at.value- The allowExitCodes to set.- Returns:
- This builder for chaining.
-
addAllowExitCodes
Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Parameters:
value- The allowExitCodes to add.- Returns:
- This builder for chaining.
-
addAllAllowExitCodes
Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Parameters:
values- The allowExitCodes to add.- Returns:
- This builder for chaining.
-
clearAllowExitCodes
Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.
repeated int32 allow_exit_codes = 18;- Returns:
- This builder for chaining.
-
getScript
A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
string script = 19;- Specified by:
getScriptin interfaceBuildStepOrBuilder- Returns:
- The script.
-
getScriptBytes
public com.google.protobuf.ByteString getScriptBytes()A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
string script = 19;- Specified by:
getScriptBytesin interfaceBuildStepOrBuilder- Returns:
- The bytes for script.
-
setScript
A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
string script = 19;- Parameters:
value- The script to set.- Returns:
- This builder for chaining.
-
clearScript
A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
string script = 19;- Returns:
- This builder for chaining.
-
setScriptBytes
A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args.
string script = 19;- Parameters:
value- The bytes for script to set.- Returns:
- This builder for chaining.
-
hasAutomapSubstitutions
public boolean hasAutomapSubstitutions()Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
optional bool automap_substitutions = 20;- Specified by:
hasAutomapSubstitutionsin interfaceBuildStepOrBuilder- Returns:
- Whether the automapSubstitutions field is set.
-
getAutomapSubstitutions
public boolean getAutomapSubstitutions()Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
optional bool automap_substitutions = 20;- Specified by:
getAutomapSubstitutionsin interfaceBuildStepOrBuilder- Returns:
- The automapSubstitutions.
-
setAutomapSubstitutions
Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
optional bool automap_substitutions = 20;- Parameters:
value- The automapSubstitutions to set.- Returns:
- This builder for chaining.
-
clearAutomapSubstitutions
Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.
optional bool automap_substitutions = 20;- Returns:
- This builder for chaining.
-