google-cloud-build-v1 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 558b661c4f52fb18badd64ff64f61930ed2fbb0464debaba634ba86a28697705
4
- data.tar.gz: a43a8574a9b630341f6be8b3041f1411f9030ae665ecf97d37e64bf50ed0be32
3
+ metadata.gz: 28a9890049dc44a0950af0f60b7da16b37e7a036b1a37f65b98f4f23f5227bb2
4
+ data.tar.gz: 1278ed6d8c4b33ca24f15485e30434141f7d9770ce5fac15fd7deba0605629c0
5
5
  SHA512:
6
- metadata.gz: af760ef91f8b6c9a13eb2435d04d8ccfcbd5649d3316b670de2305334f1de5f0af21712ba5c67b5f680b2ea11b8c41da02af7dc8b4cc9985cca659f01a892fc9
7
- data.tar.gz: c605b413385b47bf9d8e3cabc91662a628cfb70e779793f84fe1e1f0d75b1777dce1247248b9f8a5c99a356b96802071da31fd9bf70912d242dbbf278715afe6
6
+ metadata.gz: 56d6c9ec7aa15b8f75b78f053d3f475385b906b3d2aa8f3863a480351736db88e7e388ea04d3affd4397f0d95dc7b91804dcecfc25af9534861edb060c5f20fe
7
+ data.tar.gz: ecad0b7d947fb9ddc81db681d14de24a6de7bb683a8b3c58ba6f10b833ba0ea64f6638c59b4f85b38d796875f2f75f8366ab0040171083af4fb99e90d475f301
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V1
24
- VERSION = "0.12.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -61,6 +61,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
61
61
  optional :digest, :string, 3
62
62
  optional :push_timing, :message, 4, "google.devtools.cloudbuild.v1.TimeSpan"
63
63
  end
64
+ add_message "google.devtools.cloudbuild.v1.UploadedPythonPackage" do
65
+ optional :uri, :string, 1
66
+ optional :file_hashes, :message, 2, "google.devtools.cloudbuild.v1.FileHashes"
67
+ optional :push_timing, :message, 3, "google.devtools.cloudbuild.v1.TimeSpan"
68
+ end
69
+ add_message "google.devtools.cloudbuild.v1.UploadedMavenArtifact" do
70
+ optional :uri, :string, 1
71
+ optional :file_hashes, :message, 2, "google.devtools.cloudbuild.v1.FileHashes"
72
+ optional :push_timing, :message, 3, "google.devtools.cloudbuild.v1.TimeSpan"
73
+ end
64
74
  add_message "google.devtools.cloudbuild.v1.BuildStep" do
65
75
  optional :name, :string, 1
66
76
  repeated :env, :string, 2
@@ -75,6 +85,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
75
85
  optional :pull_timing, :message, 13, "google.devtools.cloudbuild.v1.TimeSpan"
76
86
  optional :timeout, :message, 11, "google.protobuf.Duration"
77
87
  optional :status, :enum, 12, "google.devtools.cloudbuild.v1.Build.Status"
88
+ optional :allow_failure, :bool, 14
89
+ optional :exit_code, :int32, 16
90
+ repeated :allow_exit_codes, :int32, 18
78
91
  optional :script, :string, 19
79
92
  end
80
93
  add_message "google.devtools.cloudbuild.v1.Volume" do
@@ -88,6 +101,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
88
101
  optional :num_artifacts, :int64, 5
89
102
  repeated :build_step_outputs, :bytes, 6
90
103
  optional :artifact_timing, :message, 7, "google.devtools.cloudbuild.v1.TimeSpan"
104
+ repeated :python_packages, :message, 8, "google.devtools.cloudbuild.v1.UploadedPythonPackage"
105
+ repeated :maven_artifacts, :message, 9, "google.devtools.cloudbuild.v1.UploadedMavenArtifact"
91
106
  end
92
107
  add_message "google.devtools.cloudbuild.v1.ArtifactResult" do
93
108
  optional :location, :string, 1
@@ -162,12 +177,25 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
162
177
  add_message "google.devtools.cloudbuild.v1.Artifacts" do
163
178
  repeated :images, :string, 1
164
179
  optional :objects, :message, 2, "google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects"
180
+ repeated :maven_artifacts, :message, 3, "google.devtools.cloudbuild.v1.Artifacts.MavenArtifact"
181
+ repeated :python_packages, :message, 5, "google.devtools.cloudbuild.v1.Artifacts.PythonPackage"
165
182
  end
166
183
  add_message "google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects" do
167
184
  optional :location, :string, 1
168
185
  repeated :paths, :string, 2
169
186
  optional :timing, :message, 3, "google.devtools.cloudbuild.v1.TimeSpan"
170
187
  end
188
+ add_message "google.devtools.cloudbuild.v1.Artifacts.MavenArtifact" do
189
+ optional :repository, :string, 1
190
+ optional :path, :string, 2
191
+ optional :artifact_id, :string, 3
192
+ optional :group_id, :string, 4
193
+ optional :version, :string, 5
194
+ end
195
+ add_message "google.devtools.cloudbuild.v1.Artifacts.PythonPackage" do
196
+ optional :repository, :string, 1
197
+ repeated :paths, :string, 2
198
+ end
171
199
  add_message "google.devtools.cloudbuild.v1.TimeSpan" do
172
200
  optional :start_time, :message, 1, "google.protobuf.Timestamp"
173
201
  optional :end_time, :message, 2, "google.protobuf.Timestamp"
@@ -522,6 +550,8 @@ module Google
522
550
  StorageSourceManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSourceManifest").msgclass
523
551
  Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Source").msgclass
524
552
  BuiltImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuiltImage").msgclass
553
+ UploadedPythonPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UploadedPythonPackage").msgclass
554
+ UploadedMavenArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UploadedMavenArtifact").msgclass
525
555
  BuildStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildStep").msgclass
526
556
  Volume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Volume").msgclass
527
557
  Results = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Results").msgclass
@@ -534,6 +564,8 @@ module Google
534
564
  Build::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Status").enummodule
535
565
  Artifacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts").msgclass
536
566
  Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
567
+ Artifacts::MavenArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.MavenArtifact").msgclass
568
+ Artifacts::PythonPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.PythonPackage").msgclass
537
569
  TimeSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.TimeSpan").msgclass
538
570
  BuildOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOperationMetadata").msgclass
539
571
  SourceProvenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.SourceProvenance").msgclass
@@ -184,6 +184,36 @@ module Google
184
184
  extend ::Google::Protobuf::MessageExts::ClassMethods
185
185
  end
186
186
 
187
+ # Artifact uploaded using the PythonPackage directive.
188
+ # @!attribute [rw] uri
189
+ # @return [::String]
190
+ # URI of the uploaded artifact.
191
+ # @!attribute [rw] file_hashes
192
+ # @return [::Google::Cloud::Build::V1::FileHashes]
193
+ # Hash types and values of the Python Artifact.
194
+ # @!attribute [r] push_timing
195
+ # @return [::Google::Cloud::Build::V1::TimeSpan]
196
+ # Output only. Stores timing information for pushing the specified artifact.
197
+ class UploadedPythonPackage
198
+ include ::Google::Protobuf::MessageExts
199
+ extend ::Google::Protobuf::MessageExts::ClassMethods
200
+ end
201
+
202
+ # A Maven artifact uploaded using the MavenArtifact directive.
203
+ # @!attribute [rw] uri
204
+ # @return [::String]
205
+ # URI of the uploaded artifact.
206
+ # @!attribute [rw] file_hashes
207
+ # @return [::Google::Cloud::Build::V1::FileHashes]
208
+ # Hash types and values of the Maven Artifact.
209
+ # @!attribute [r] push_timing
210
+ # @return [::Google::Cloud::Build::V1::TimeSpan]
211
+ # Output only. Stores timing information for pushing the specified artifact.
212
+ class UploadedMavenArtifact
213
+ include ::Google::Protobuf::MessageExts
214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
215
+ end
216
+
187
217
  # A step in the build pipeline.
188
218
  # @!attribute [rw] name
189
219
  # @return [::String]
@@ -277,6 +307,21 @@ module Google
277
307
  # Output only. Status of the build step. At this time, build step status is
278
308
  # only updated on build completion; step status is not updated in real-time
279
309
  # as the build progresses.
310
+ # @!attribute [rw] allow_failure
311
+ # @return [::Boolean]
312
+ # Allow this build step to fail without failing the entire build.
313
+ #
314
+ # If false, the entire build will fail if this step fails. Otherwise, the
315
+ # build will succeed, but this step will still have a failure status.
316
+ # Error information will be reported in the failure_detail field.
317
+ # @!attribute [r] exit_code
318
+ # @return [::Integer]
319
+ # Output only. Return code from running the step.
320
+ # @!attribute [rw] allow_exit_codes
321
+ # @return [::Array<::Integer>]
322
+ # Allow this build step to fail without failing the entire build if and
323
+ # only if the exit code is one of the specified codes. If allow_failure
324
+ # is also specified, this field will take precedence.
280
325
  # @!attribute [rw] script
281
326
  # @return [::String]
282
327
  # A shell script to be executed in the step.
@@ -331,6 +376,12 @@ module Google
331
376
  # @!attribute [rw] artifact_timing
332
377
  # @return [::Google::Cloud::Build::V1::TimeSpan]
333
378
  # Time to push all non-container artifacts.
379
+ # @!attribute [rw] python_packages
380
+ # @return [::Array<::Google::Cloud::Build::V1::UploadedPythonPackage>]
381
+ # Python artifacts uploaded to Artifact Registry at the end of the build.
382
+ # @!attribute [rw] maven_artifacts
383
+ # @return [::Array<::Google::Cloud::Build::V1::UploadedMavenArtifact>]
384
+ # Maven artifacts uploaded to Artifact Registry at the end of the build.
334
385
  class Results
335
386
  include ::Google::Protobuf::MessageExts
336
387
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -649,6 +700,24 @@ module Google
649
700
  # Build resource's results field.
650
701
  #
651
702
  # If any objects fail to be pushed, the build is marked FAILURE.
703
+ # @!attribute [rw] maven_artifacts
704
+ # @return [::Array<::Google::Cloud::Build::V1::Artifacts::MavenArtifact>]
705
+ # A list of Maven artifacts to be uploaded to Artifact Registry upon
706
+ # successful completion of all build steps.
707
+ #
708
+ # Artifacts in the workspace matching specified paths globs will be uploaded
709
+ # to the specified Artifact Registry repository using the builder service
710
+ # account's credentials.
711
+ #
712
+ # If any artifacts fail to be pushed, the build is marked FAILURE.
713
+ # @!attribute [rw] python_packages
714
+ # @return [::Array<::Google::Cloud::Build::V1::Artifacts::PythonPackage>]
715
+ # A list of Python packages to be uploaded to Artifact Registry upon
716
+ # successful completion of all build steps.
717
+ #
718
+ # The build service account credentials will be used to perform the upload.
719
+ #
720
+ # If any objects fail to be pushed, the build is marked FAILURE.
652
721
  class Artifacts
653
722
  include ::Google::Protobuf::MessageExts
654
723
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -673,6 +742,60 @@ module Google
673
742
  include ::Google::Protobuf::MessageExts
674
743
  extend ::Google::Protobuf::MessageExts::ClassMethods
675
744
  end
745
+
746
+ # A Maven artifact to upload to Artifact Registry upon successful completion
747
+ # of all build steps.
748
+ # @!attribute [rw] repository
749
+ # @return [::String]
750
+ # Artifact Registry repository, in the form
751
+ # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
752
+ #
753
+ # Artifact in the workspace specified by path will be uploaded to
754
+ # Artifact Registry with this location as a prefix.
755
+ # @!attribute [rw] path
756
+ # @return [::String]
757
+ # Path to an artifact in the build's workspace to be uploaded to
758
+ # Artifact Registry.
759
+ # This can be either an absolute path,
760
+ # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
761
+ # or a relative path from /workspace,
762
+ # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
763
+ # @!attribute [rw] artifact_id
764
+ # @return [::String]
765
+ # Maven `artifactId` value used when uploading the artifact to Artifact
766
+ # Registry.
767
+ # @!attribute [rw] group_id
768
+ # @return [::String]
769
+ # Maven `groupId` value used when uploading the artifact to Artifact
770
+ # Registry.
771
+ # @!attribute [rw] version
772
+ # @return [::String]
773
+ # Maven `version` value used when uploading the artifact to Artifact
774
+ # Registry.
775
+ class MavenArtifact
776
+ include ::Google::Protobuf::MessageExts
777
+ extend ::Google::Protobuf::MessageExts::ClassMethods
778
+ end
779
+
780
+ # Python package to upload to Artifact Registry upon successful completion
781
+ # of all build steps. A package can encapsulate multiple objects to be
782
+ # uploaded to a single repository.
783
+ # @!attribute [rw] repository
784
+ # @return [::String]
785
+ # Artifact Registry repository, in the form
786
+ # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
787
+ #
788
+ # Files in the workspace matching any path pattern will be uploaded to
789
+ # Artifact Registry with this location as a prefix.
790
+ # @!attribute [rw] paths
791
+ # @return [::Array<::String>]
792
+ # Path globs used to match files in the build's workspace. For Python/
793
+ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
794
+ # file.
795
+ class PythonPackage
796
+ include ::Google::Protobuf::MessageExts
797
+ extend ::Google::Protobuf::MessageExts::ClassMethods
798
+ end
676
799
  end
677
800
 
678
801
  # Start and end times for a build execution phase.
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-build-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.12'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a