Class ResolvedRepoSourceClass

public class ResolvedRepoSourceClass

A copy of the build's `source.repo_source`, if exists, with any revisions resolved. If provided, get the source from this location in a Cloud Source Repository. Location of the source in a Google Cloud Source Repository.

Inheritance

java.lang.Object > ResolvedRepoSourceClass

Constructors

ResolvedRepoSourceClass()

public ResolvedRepoSourceClass()

Methods

getBranchName()

public String getBranchName()

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

Returns
TypeDescription
String

getCommitSHA()

public String getCommitSHA()

Explicit commit SHA to build.

Returns
TypeDescription
String

getDir()

public String getDir()

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
TypeDescription
String

getInvertRegex()

public Boolean getInvertRegex()

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

Returns
TypeDescription
Boolean

getProjectID()

public String getProjectID()

ID of the project that owns the Cloud Source Repository.

Returns
TypeDescription
String

getRepoName()

public String getRepoName()

Name of the Cloud Source Repository.

Returns
TypeDescription
String

getSubstitutions()

public Map<String,String> getSubstitutions()

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

Returns
TypeDescription
Map<String,String>

getTagName()

public String getTagName()

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

Returns
TypeDescription
String

setBranchName(String value)

public void setBranchName(String value)
Parameter
NameDescription
valueString

setCommitSHA(String value)

public void setCommitSHA(String value)
Parameter
NameDescription
valueString

setDir(String value)

public void setDir(String value)
Parameter
NameDescription
valueString

setInvertRegex(Boolean value)

public void setInvertRegex(Boolean value)
Parameter
NameDescription
valueBoolean

setProjectID(String value)

public void setProjectID(String value)
Parameter
NameDescription
valueString

setRepoName(String value)

public void setRepoName(String value)
Parameter
NameDescription
valueString

setSubstitutions(Map<String,String> value)

public void setSubstitutions(Map<String,String> value)
Parameter
NameDescription
valueMap<String,String>

setTagName(String value)

public void setTagName(String value)
Parameter
NameDescription
valueString