public class RepoCloudBuildSource extends CloudBuildSource implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
RepoCloudBuildSource.DescriptorImpl
Descriptor for
RepoCloudBuildSource. |
static class |
RepoCloudBuildSource.RevisionType
Indicates the type of Git revision (branch, tag, or commit) to be specified as the source.
|
NULL| Constructor and Description |
|---|
RepoCloudBuildSource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBranch() |
String |
getCommit() |
String |
getProjectId() |
String |
getRepoName() |
String |
getRevision() |
RepoCloudBuildSource.RevisionType |
getRevisionType() |
String |
getTag() |
com.google.api.services.cloudbuild.v1.model.Source |
prepare(BuildContext context,
ClientFactory clients)
Prepares the source and returns the
Source object to be used for the build request. |
void |
setBranch(String branch) |
void |
setCommit(String commit) |
void |
setProjectId(String projectId) |
void |
setRepoName(String repoName) |
void |
setTag(String tag) |
getDescriptor@DataBoundSetter public void setProjectId(@CheckForNull String projectId)
@CheckForNull public String getProjectId()
@DataBoundSetter public void setRepoName(@CheckForNull String repoName)
@CheckForNull public String getRepoName()
@CheckForNull public String getBranch()
@DataBoundSetter public void setBranch(@CheckForNull String branch)
@CheckForNull public String getTag()
@DataBoundSetter public void setTag(@CheckForNull String tag)
@CheckForNull public String getCommit()
@DataBoundSetter public void setCommit(@CheckForNull String commit)
public RepoCloudBuildSource.RevisionType getRevisionType()
public String getRevision()
public com.google.api.services.cloudbuild.v1.model.Source prepare(BuildContext context, ClientFactory clients) throws IOException, InterruptedException
CloudBuildSourceSource object to be used for the build request.prepare in class CloudBuildSourcecontext - the context of the currently running Jenkins buildclients - the factory to use for accessing Google Cloud servicesSource to attach to the build requestIOException - if an I/O error occurs while preparing the sourceInterruptedException - if an operation involving communicating with another Jenkins node
is interruptedCopyright © 2017–2021 Google. All rights reserved.