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, MavenArtifact, NpmPackage, PythonPackage
Instance Attribute Summary collapse
-
#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
#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.
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 807 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] # 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 # 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] # Path to the package.json. # e.g. workspace/path/to/package 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.
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 807 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] # 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 # 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] # Path to the package.json. # e.g. workspace/path/to/package 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.
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 807 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] # 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 # 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] # Path to the package.json. # e.g. workspace/path/to/package 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.
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 807 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] # 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 # 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] # Path to the package.json. # e.g. workspace/path/to/package 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.
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 807 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] # 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 # 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] # Path to the package.json. # e.g. workspace/path/to/package class NpmPackage include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |