A Task represents a unit of work that is executed as part of a Job.
| JSON representation |
|---|
{ // Union field |
type
. The type of Task. type
can be only one of the following:container
object (
ContainerTask
)
Optional. This task is represented by a container that is executed in the Cloud Build execution environment.
ContainerTask
This task is represented by a container that is executed in the Cloud Build execution environment.
| JSON representation |
|---|
{ "image" : string , "command" : [ string ] , "args" : [ string ] , "env" : { string : string , ... } } |
| Fields | |
|---|---|
image
|
Required. Image is the container image to use. |
command[]
|
Optional. Command is the container entrypoint to use. This overrides the default entrypoint defined in the container image. |
args[]
|
Optional. Args is the container arguments to use. This overrides the default arguments defined in the container image. |
env
|
Optional. Environment variables that are set in the container. An object containing a list of |

