Class: Google::Apis::CloudbuildV1::BuildStep
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::BuildStep
- 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
-
#args ⇒ Array<String>
Command-line arguments to use when running this step's container.
-
#dir ⇒ String
Working directory (relative to project source root) to use when running this operation's container.
-
#env ⇒ Array<String>
Additional environment variables to set for this step's container.
-
#id ⇒ String
Optional unique identifier for this build step, used in wait_for to reference this build step as a dependency.
-
#name ⇒ String
Name of the container image to use for creating this stage in the pipeline, as presented to
docker pull
. -
#wait_for ⇒ Array<String>
The ID(s) of the step(s) that this build step depends on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildStep
constructor
A new instance of BuildStep.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#args ⇒ Array<String>
Command-line arguments to use when running this step's container.
Corresponds to the JSON property args
731 732 733 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 731 def args @args end |
#dir ⇒ String
Working directory (relative to project source root) to use when running
this operation's container.
Corresponds to the JSON property dir
743 744 745 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 743 def dir @dir end |
#env ⇒ Array<String>
Additional environment variables to set for this step's container.
Corresponds to the JSON property env
717 718 719 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 717 def env @env end |
#id ⇒ String
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
712 713 714 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 712 def id @id end |
#name ⇒ String
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
737 738 739 |
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 737 def name @name end |
#wait_for ⇒ Array<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
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 |