Class: Google::Cloud::Build::V1::Artifacts
- Inherits:
-
Object
- Object
- Google::Cloud::Build::V1::Artifacts
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
Overview
Artifacts produced by a build that should be uploaded upon successful completion of all build steps.
Defined Under Namespace
Classes: ArtifactObjects, GoModule, MavenArtifact, NpmPackage, PythonPackage
Instance Attribute Summary collapse
-
#go_modules ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::GoModule>
Optional.
-
#images ⇒ ::Array<::String>
A list of images to be pushed upon the successful completion of all build steps.
-
#maven_artifacts ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::MavenArtifact>
A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.
-
#npm_packages ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::NpmPackage>
A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.
-
#objects ⇒ ::Google::Cloud::Build::V1::Artifacts::ArtifactObjects
A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
-
#python_packages ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::PythonPackage>
A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.
Instance Attribute Details
#go_modules ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::GoModule>
Returns Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps.
If any objects fail to be pushed, the build is marked FAILURE.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1009 class Artifacts include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Files in the workspace to upload to Cloud Storage upon successful # completion of all build steps. # @!attribute [rw] location # @return [::String] # Cloud Storage bucket and optional object path, in the form # "gs://bucket/path/to/somewhere/". (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). # # Files in the workspace matching any path pattern will be uploaded to # Cloud Storage with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. # @!attribute [r] timing # @return [::Google::Cloud::Build::V1::TimeSpan] # Output only. Stores timing information for pushing all artifact objects. class ArtifactObjects include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A Maven artifact to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" # # Artifact in the workspace specified by path will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] path # @return [::String] # Optional. Path to an artifact in the build's workspace to be uploaded to # Artifact Registry. # This can be either an absolute path, # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar # or a relative path from /workspace, # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. # @!attribute [rw] artifact_id # @return [::String] # Maven `artifactId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] group_id # @return [::String] # Maven `groupId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] version # @return [::String] # Maven `version` value used when uploading the artifact to Artifact # Registry. class MavenArtifact include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Go module to upload to Artifact Registry upon successful completion of all # build steps. A module refers to all dependencies in a go.mod file. # @!attribute [rw] repository_name # @return [::String] # Optional. Artifact Registry repository name. # # Specified Go modules will be zipped and uploaded to Artifact Registry # with this location as a prefix. # e.g. my-go-repo # @!attribute [rw] repository_location # @return [::String] # Optional. Location of the Artifact Registry repository. i.e. us-east1 # Defaults to the build’s location. # @!attribute [rw] repository_project_id # @return [::String] # Optional. Project ID of the Artifact Registry repository. # Defaults to the build project. # @!attribute [rw] source_path # @return [::String] # Optional. Source path of the go.mod file in the build's workspace. If not # specified, this will default to the current directory. # e.g. ~/code/go/mypackage # @!attribute [rw] module_path # @return [::String] # Optional. The Go module's "module path". # e.g. example.com/foo/v2 # @!attribute [rw] module_version # @return [::String] # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. # v0.1.1 Pre-release identifiers can also be added by appending a dash and # dot separated ASCII alphanumeric characters and hyphens. # e.g. v0.2.3-alpha.x.12m.5 class GoModule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Python package to upload to Artifact Registry upon successful completion # of all build steps. A package can encapsulate multiple objects to be # uploaded to a single repository. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" # # Files in the workspace matching any path pattern will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. For Python/ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc` # file. class PythonPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Npm package to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" # # Npm package in the workspace specified by path will be zipped and # uploaded to Artifact Registry with this location as a prefix. # @!attribute [rw] package_path # @return [::String] # Optional. Path to the package.json. # e.g. workspace/path/to/package # # Only one of `archive` or `package_path` can be specified. class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#images ⇒ ::Array<::String>
Returns A list of images to be pushed upon the successful completion of all build steps.
The images will be pushed using the builder service account's credentials.
The digests of the pushed images will be stored in the Build resource's results field.
If any of the images fail to be pushed, the build is marked FAILURE.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1009 class Artifacts include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Files in the workspace to upload to Cloud Storage upon successful # completion of all build steps. # @!attribute [rw] location # @return [::String] # Cloud Storage bucket and optional object path, in the form # "gs://bucket/path/to/somewhere/". (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). # # Files in the workspace matching any path pattern will be uploaded to # Cloud Storage with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. # @!attribute [r] timing # @return [::Google::Cloud::Build::V1::TimeSpan] # Output only. Stores timing information for pushing all artifact objects. class ArtifactObjects include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A Maven artifact to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" # # Artifact in the workspace specified by path will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] path # @return [::String] # Optional. Path to an artifact in the build's workspace to be uploaded to # Artifact Registry. # This can be either an absolute path, # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar # or a relative path from /workspace, # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. # @!attribute [rw] artifact_id # @return [::String] # Maven `artifactId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] group_id # @return [::String] # Maven `groupId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] version # @return [::String] # Maven `version` value used when uploading the artifact to Artifact # Registry. class MavenArtifact include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Go module to upload to Artifact Registry upon successful completion of all # build steps. A module refers to all dependencies in a go.mod file. # @!attribute [rw] repository_name # @return [::String] # Optional. Artifact Registry repository name. # # Specified Go modules will be zipped and uploaded to Artifact Registry # with this location as a prefix. # e.g. my-go-repo # @!attribute [rw] repository_location # @return [::String] # Optional. Location of the Artifact Registry repository. i.e. us-east1 # Defaults to the build’s location. # @!attribute [rw] repository_project_id # @return [::String] # Optional. Project ID of the Artifact Registry repository. # Defaults to the build project. # @!attribute [rw] source_path # @return [::String] # Optional. Source path of the go.mod file in the build's workspace. If not # specified, this will default to the current directory. # e.g. ~/code/go/mypackage # @!attribute [rw] module_path # @return [::String] # Optional. The Go module's "module path". # e.g. example.com/foo/v2 # @!attribute [rw] module_version # @return [::String] # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. # v0.1.1 Pre-release identifiers can also be added by appending a dash and # dot separated ASCII alphanumeric characters and hyphens. # e.g. v0.2.3-alpha.x.12m.5 class GoModule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Python package to upload to Artifact Registry upon successful completion # of all build steps. A package can encapsulate multiple objects to be # uploaded to a single repository. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" # # Files in the workspace matching any path pattern will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. For Python/ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc` # file. class PythonPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Npm package to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" # # Npm package in the workspace specified by path will be zipped and # uploaded to Artifact Registry with this location as a prefix. # @!attribute [rw] package_path # @return [::String] # Optional. Path to the package.json. # e.g. workspace/path/to/package # # Only one of `archive` or `package_path` can be specified. class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#maven_artifacts ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::MavenArtifact>
Returns A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.
Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.
If any artifacts fail to be pushed, the build is marked FAILURE.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1009 class Artifacts include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Files in the workspace to upload to Cloud Storage upon successful # completion of all build steps. # @!attribute [rw] location # @return [::String] # Cloud Storage bucket and optional object path, in the form # "gs://bucket/path/to/somewhere/". (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). # # Files in the workspace matching any path pattern will be uploaded to # Cloud Storage with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. # @!attribute [r] timing # @return [::Google::Cloud::Build::V1::TimeSpan] # Output only. Stores timing information for pushing all artifact objects. class ArtifactObjects include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A Maven artifact to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" # # Artifact in the workspace specified by path will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] path # @return [::String] # Optional. Path to an artifact in the build's workspace to be uploaded to # Artifact Registry. # This can be either an absolute path, # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar # or a relative path from /workspace, # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. # @!attribute [rw] artifact_id # @return [::String] # Maven `artifactId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] group_id # @return [::String] # Maven `groupId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] version # @return [::String] # Maven `version` value used when uploading the artifact to Artifact # Registry. class MavenArtifact include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Go module to upload to Artifact Registry upon successful completion of all # build steps. A module refers to all dependencies in a go.mod file. # @!attribute [rw] repository_name # @return [::String] # Optional. Artifact Registry repository name. # # Specified Go modules will be zipped and uploaded to Artifact Registry # with this location as a prefix. # e.g. my-go-repo # @!attribute [rw] repository_location # @return [::String] # Optional. Location of the Artifact Registry repository. i.e. us-east1 # Defaults to the build’s location. # @!attribute [rw] repository_project_id # @return [::String] # Optional. Project ID of the Artifact Registry repository. # Defaults to the build project. # @!attribute [rw] source_path # @return [::String] # Optional. Source path of the go.mod file in the build's workspace. If not # specified, this will default to the current directory. # e.g. ~/code/go/mypackage # @!attribute [rw] module_path # @return [::String] # Optional. The Go module's "module path". # e.g. example.com/foo/v2 # @!attribute [rw] module_version # @return [::String] # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. # v0.1.1 Pre-release identifiers can also be added by appending a dash and # dot separated ASCII alphanumeric characters and hyphens. # e.g. v0.2.3-alpha.x.12m.5 class GoModule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Python package to upload to Artifact Registry upon successful completion # of all build steps. A package can encapsulate multiple objects to be # uploaded to a single repository. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" # # Files in the workspace matching any path pattern will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. For Python/ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc` # file. class PythonPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Npm package to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" # # Npm package in the workspace specified by path will be zipped and # uploaded to Artifact Registry with this location as a prefix. # @!attribute [rw] package_path # @return [::String] # Optional. Path to the package.json. # e.g. workspace/path/to/package # # Only one of `archive` or `package_path` can be specified. class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#npm_packages ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::NpmPackage>
Returns A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.
Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.
If any packages fail to be pushed, the build is marked FAILURE.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1009 class Artifacts include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Files in the workspace to upload to Cloud Storage upon successful # completion of all build steps. # @!attribute [rw] location # @return [::String] # Cloud Storage bucket and optional object path, in the form # "gs://bucket/path/to/somewhere/". (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). # # Files in the workspace matching any path pattern will be uploaded to # Cloud Storage with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. # @!attribute [r] timing # @return [::Google::Cloud::Build::V1::TimeSpan] # Output only. Stores timing information for pushing all artifact objects. class ArtifactObjects include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A Maven artifact to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" # # Artifact in the workspace specified by path will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] path # @return [::String] # Optional. Path to an artifact in the build's workspace to be uploaded to # Artifact Registry. # This can be either an absolute path, # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar # or a relative path from /workspace, # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. # @!attribute [rw] artifact_id # @return [::String] # Maven `artifactId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] group_id # @return [::String] # Maven `groupId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] version # @return [::String] # Maven `version` value used when uploading the artifact to Artifact # Registry. class MavenArtifact include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Go module to upload to Artifact Registry upon successful completion of all # build steps. A module refers to all dependencies in a go.mod file. # @!attribute [rw] repository_name # @return [::String] # Optional. Artifact Registry repository name. # # Specified Go modules will be zipped and uploaded to Artifact Registry # with this location as a prefix. # e.g. my-go-repo # @!attribute [rw] repository_location # @return [::String] # Optional. Location of the Artifact Registry repository. i.e. us-east1 # Defaults to the build’s location. # @!attribute [rw] repository_project_id # @return [::String] # Optional. Project ID of the Artifact Registry repository. # Defaults to the build project. # @!attribute [rw] source_path # @return [::String] # Optional. Source path of the go.mod file in the build's workspace. If not # specified, this will default to the current directory. # e.g. ~/code/go/mypackage # @!attribute [rw] module_path # @return [::String] # Optional. The Go module's "module path". # e.g. example.com/foo/v2 # @!attribute [rw] module_version # @return [::String] # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. # v0.1.1 Pre-release identifiers can also be added by appending a dash and # dot separated ASCII alphanumeric characters and hyphens. # e.g. v0.2.3-alpha.x.12m.5 class GoModule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Python package to upload to Artifact Registry upon successful completion # of all build steps. A package can encapsulate multiple objects to be # uploaded to a single repository. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" # # Files in the workspace matching any path pattern will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. For Python/ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc` # file. class PythonPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Npm package to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" # # Npm package in the workspace specified by path will be zipped and # uploaded to Artifact Registry with this location as a prefix. # @!attribute [rw] package_path # @return [::String] # Optional. Path to the package.json. # e.g. workspace/path/to/package # # Only one of `archive` or `package_path` can be specified. class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#objects ⇒ ::Google::Cloud::Build::V1::Artifacts::ArtifactObjects
Returns A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.
The location and generation of the uploaded objects will be stored in the Build resource's results field.
If any objects fail to be pushed, the build is marked FAILURE.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1009 class Artifacts include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Files in the workspace to upload to Cloud Storage upon successful # completion of all build steps. # @!attribute [rw] location # @return [::String] # Cloud Storage bucket and optional object path, in the form # "gs://bucket/path/to/somewhere/". (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). # # Files in the workspace matching any path pattern will be uploaded to # Cloud Storage with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. # @!attribute [r] timing # @return [::Google::Cloud::Build::V1::TimeSpan] # Output only. Stores timing information for pushing all artifact objects. class ArtifactObjects include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A Maven artifact to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" # # Artifact in the workspace specified by path will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] path # @return [::String] # Optional. Path to an artifact in the build's workspace to be uploaded to # Artifact Registry. # This can be either an absolute path, # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar # or a relative path from /workspace, # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. # @!attribute [rw] artifact_id # @return [::String] # Maven `artifactId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] group_id # @return [::String] # Maven `groupId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] version # @return [::String] # Maven `version` value used when uploading the artifact to Artifact # Registry. class MavenArtifact include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Go module to upload to Artifact Registry upon successful completion of all # build steps. A module refers to all dependencies in a go.mod file. # @!attribute [rw] repository_name # @return [::String] # Optional. Artifact Registry repository name. # # Specified Go modules will be zipped and uploaded to Artifact Registry # with this location as a prefix. # e.g. my-go-repo # @!attribute [rw] repository_location # @return [::String] # Optional. Location of the Artifact Registry repository. i.e. us-east1 # Defaults to the build’s location. # @!attribute [rw] repository_project_id # @return [::String] # Optional. Project ID of the Artifact Registry repository. # Defaults to the build project. # @!attribute [rw] source_path # @return [::String] # Optional. Source path of the go.mod file in the build's workspace. If not # specified, this will default to the current directory. # e.g. ~/code/go/mypackage # @!attribute [rw] module_path # @return [::String] # Optional. The Go module's "module path". # e.g. example.com/foo/v2 # @!attribute [rw] module_version # @return [::String] # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. # v0.1.1 Pre-release identifiers can also be added by appending a dash and # dot separated ASCII alphanumeric characters and hyphens. # e.g. v0.2.3-alpha.x.12m.5 class GoModule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Python package to upload to Artifact Registry upon successful completion # of all build steps. A package can encapsulate multiple objects to be # uploaded to a single repository. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" # # Files in the workspace matching any path pattern will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. For Python/ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc` # file. class PythonPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Npm package to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" # # Npm package in the workspace specified by path will be zipped and # uploaded to Artifact Registry with this location as a prefix. # @!attribute [rw] package_path # @return [::String] # Optional. Path to the package.json. # e.g. workspace/path/to/package # # Only one of `archive` or `package_path` can be specified. class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#python_packages ⇒ ::Array<::Google::Cloud::Build::V1::Artifacts::PythonPackage>
Returns A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.
The build service account credentials will be used to perform the upload.
If any objects fail to be pushed, the build is marked FAILURE.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1009 class Artifacts include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Files in the workspace to upload to Cloud Storage upon successful # completion of all build steps. # @!attribute [rw] location # @return [::String] # Cloud Storage bucket and optional object path, in the form # "gs://bucket/path/to/somewhere/". (see [Bucket Name # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). # # Files in the workspace matching any path pattern will be uploaded to # Cloud Storage with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. # @!attribute [r] timing # @return [::Google::Cloud::Build::V1::TimeSpan] # Output only. Stores timing information for pushing all artifact objects. class ArtifactObjects include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # A Maven artifact to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" # # Artifact in the workspace specified by path will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] path # @return [::String] # Optional. Path to an artifact in the build's workspace to be uploaded to # Artifact Registry. # This can be either an absolute path, # e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar # or a relative path from /workspace, # e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. # @!attribute [rw] artifact_id # @return [::String] # Maven `artifactId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] group_id # @return [::String] # Maven `groupId` value used when uploading the artifact to Artifact # Registry. # @!attribute [rw] version # @return [::String] # Maven `version` value used when uploading the artifact to Artifact # Registry. class MavenArtifact include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Go module to upload to Artifact Registry upon successful completion of all # build steps. A module refers to all dependencies in a go.mod file. # @!attribute [rw] repository_name # @return [::String] # Optional. Artifact Registry repository name. # # Specified Go modules will be zipped and uploaded to Artifact Registry # with this location as a prefix. # e.g. my-go-repo # @!attribute [rw] repository_location # @return [::String] # Optional. Location of the Artifact Registry repository. i.e. us-east1 # Defaults to the build’s location. # @!attribute [rw] repository_project_id # @return [::String] # Optional. Project ID of the Artifact Registry repository. # Defaults to the build project. # @!attribute [rw] source_path # @return [::String] # Optional. Source path of the go.mod file in the build's workspace. If not # specified, this will default to the current directory. # e.g. ~/code/go/mypackage # @!attribute [rw] module_path # @return [::String] # Optional. The Go module's "module path". # e.g. example.com/foo/v2 # @!attribute [rw] module_version # @return [::String] # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. # v0.1.1 Pre-release identifiers can also be added by appending a dash and # dot separated ASCII alphanumeric characters and hyphens. # e.g. v0.2.3-alpha.x.12m.5 class GoModule include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Python package to upload to Artifact Registry upon successful completion # of all build steps. A package can encapsulate multiple objects to be # uploaded to a single repository. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" # # Files in the workspace matching any path pattern will be uploaded to # Artifact Registry with this location as a prefix. # @!attribute [rw] paths # @return [::Array<::String>] # Path globs used to match files in the build's workspace. For Python/ # Twine, this is usually `dist/*`, and sometimes additionally an `.asc` # file. class PythonPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Npm package to upload to Artifact Registry upon successful completion # of all build steps. # @!attribute [rw] repository # @return [::String] # Artifact Registry repository, in the form # "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" # # Npm package in the workspace specified by path will be zipped and # uploaded to Artifact Registry with this location as a prefix. # @!attribute [rw] package_path # @return [::String] # Optional. Path to the package.json. # e.g. workspace/path/to/package # # Only one of `archive` or `package_path` can be specified. class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |