Class: Google::Cloud::Build::V1::RepoSource

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

Location of the source in a Google Cloud Source Repository.

Defined Under Namespace

Classes: SubstitutionsEntry

Instance Attribute Summary collapse

Instance Attribute Details

#branch_name::String

Returns Regex matching branches to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Note: The following fields are mutually exclusive: branch_name, tag_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    Regex matching branches to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

    Note: The following fields are mutually exclusive: branch_name, tag_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#commit_sha::String

Returns Explicit commit SHA to build.

Note: The following fields are mutually exclusive: commit_sha, branch_name, tag_name. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    Explicit commit SHA to build.

    Note: The following fields are mutually exclusive: commit_sha, branch_name, tag_name. If a field in that set is populated, all other fields in the set will automatically be cleared.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#dir::String

Returns Optional. Directory, relative to the source root, in which to run the build.

This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

Returns:

  • (::String)

    Optional. Directory, relative to the source root, in which to run the build.

    This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#invert_regex::Boolean

Returns Optional. Only trigger a build if the revision regex does NOT match the revision regex.

Returns:

  • (::Boolean)

    Optional. Only trigger a build if the revision regex does NOT match the revision regex.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#project_id::String

Returns Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

Returns:

  • (::String)

    Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#repo_name::String

Returns Required. Name of the Cloud Source Repository.

Returns:

  • (::String)

    Required. Name of the Cloud Source Repository.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#substitutions::Google::Protobuf::Map{::String => ::String}

Returns Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#tag_name::String

Returns Regex matching tags to build.

The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

Note: The following fields are mutually exclusive: tag_name, branch_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    Regex matching tags to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

    Note: The following fields are mutually exclusive: tag_name, branch_name, commit_sha. If a field in that set is populated, all other fields in the set will automatically be cleared.



204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 204

class RepoSource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SubstitutionsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end