Class: Google::Apis::CloudbuildV1::BuildStep

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb

Overview

BuildStep describes a step to perform in the build pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BuildStep

Returns a new instance of BuildStep.



745
746
747
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 745

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argsArray<String>

Command-line arguments to use when running this step's container. Corresponds to the JSON property args

Returns:

  • (Array<String>)


731
732
733
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 731

def args
  @args
end

#dirString

Working directory (relative to project source root) to use when running this operation's container. Corresponds to the JSON property dir

Returns:

  • (String)


743
744
745
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 743

def dir
  @dir
end

#envArray<String>

Additional environment variables to set for this step's container. Corresponds to the JSON property env

Returns:

  • (Array<String>)


717
718
719
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 717

def env
  @env
end

#idString

Optional unique identifier for this build step, used in wait_for to reference this build step as a dependency. Corresponds to the JSON property id

Returns:

  • (String)


712
713
714
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 712

def id
  @id
end

#nameString

Name of the container image to use for creating this stage in the pipeline, as presented to docker pull. Corresponds to the JSON property name

Returns:

  • (String)


737
738
739
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 737

def name
  @name
end

#wait_forArray<String>

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. Corresponds to the JSON property waitFor

Returns:

  • (Array<String>)


726
727
728
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 726

def wait_for
  @wait_for
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



750
751
752
753
754
755
756
757
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 750

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @env = args[:env] if args.key?(:env)
  @wait_for = args[:wait_for] if args.key?(:wait_for)
  @args = args[:args] if args.key?(:args)
  @name = args[:name] if args.key?(:name)
  @dir = args[:dir] if args.key?(:dir)
end