@ExportedBean public class RepoScm extends hudson.scm.SCM implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RepoScm.DescriptorImpl
A DescriptorImpl contains variables used server-wide.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROJECT_BRANCH |
static String |
PROJECT_REPO_URL |
Constructor and Description |
---|
RepoScm(String repositoryUrl,
String branch)
The constructor takes in user parameters and sets them.
|
Modifier and Type | Method and Description |
---|---|
void |
buildEnvVars(hudson.model.AbstractBuild<?,?> build,
Map<String,String> env) |
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
checkout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline) |
hudson.scm.ChangeLogParser |
createChangeLogParser() |
String |
getBranch()
Returns the project branch name.
|
RepoScm.DescriptorImpl |
getDescriptor() |
String |
getKey() |
String |
getRepositoryUrl()
Returns the project repository URL.
|
_calcRevisionsFromBuild, _for, _for, all, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
public static final String PROJECT_REPO_URL
public static final String PROJECT_BRANCH
@Exported public String getRepositoryUrl()
@Exported public String getBranch()
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(@Nonnull hudson.model.Run<?,?> build, @Nullable hudson.FilePath workspace, @Nullable hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws IOException, InterruptedException
calcRevisionsFromBuild
in class hudson.scm.SCM
IOException
InterruptedException
public void checkout(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.Launcher launcher, @Nonnull hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener, @CheckForNull File changelogFile, @CheckForNull hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
checkout
in class hudson.scm.SCM
IOException
InterruptedException
public hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser
in class hudson.scm.SCM
public RepoScm.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.scm.SCM>
getDescriptor
in class hudson.scm.SCM
Copyright © 2016–2019. All rights reserved.