Class BitbucketSCM
java.lang.Object
hudson.scm.SCM
com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCM
- All Implemented Interfaces:
ExtensionPoint,Describable<SCM>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketSCM(BitbucketSCM oldScm) Regenerate SCM by looking up new repo URLs etc.BitbucketSCM(String id, List<hudson.plugins.git.BranchSpec> branches, String credentialsId, String sshCredentialsId, List<hudson.plugins.git.extensions.GitSCMExtension> extensions, String gitTool, String serverId, BitbucketRepository repository) BitbucketSCM(String id, List<hudson.plugins.git.BranchSpec> branches, String credentialsId, String sshCredentialsId, List<hudson.plugins.git.extensions.GitSCMExtension> extensions, String gitTool, String projectName, String repositoryName, String serverId, String mirrorName) BitbucketSCM(String id, List<hudson.plugins.git.BranchSpec> branches, String credentialsId, String sshCredentialsId, List<hudson.plugins.git.extensions.GitSCMExtension> extensions, String gitTool, String projectName, String repositoryName, String serverId, String mirrorName, Item context) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironment(Run<?, ?> build, Map<String, String> env) calcRevisionsFromBuild(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) voidcheckout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) compareRemoteRevisionWith(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) hudson.plugins.git.GitSCMgetAndInitializeGitScmIfNull(Item context) List<hudson.plugins.git.BranchSpec>List<hudson.plugins.git.extensions.GitSCMExtension>hudson.plugins.git.GitSCMgetId()List<hudson.plugins.git.UserRemoteConfig>booleanvoidsetWebhookRegistered(boolean isWebhookRegistered) Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
-
Constructor Details
-
BitbucketSCM
@DataBoundConstructor public BitbucketSCM(@CheckForNull String id, @CheckForNull List<hudson.plugins.git.BranchSpec> branches, @CheckForNull String credentialsId, @CheckForNull String sshCredentialsId, @CheckForNull List<hudson.plugins.git.extensions.GitSCMExtension> extensions, @CheckForNull String gitTool, @CheckForNull String projectName, @CheckForNull String repositoryName, @CheckForNull String serverId, @CheckForNull String mirrorName) -
BitbucketSCM
public BitbucketSCM(@CheckForNull String id, @CheckForNull List<hudson.plugins.git.BranchSpec> branches, @CheckForNull String credentialsId, @CheckForNull String sshCredentialsId, @CheckForNull List<hudson.plugins.git.extensions.GitSCMExtension> extensions, @CheckForNull String gitTool, @CheckForNull String projectName, @CheckForNull String repositoryName, @CheckForNull String serverId, @CheckForNull String mirrorName, @CheckForNull Item context) -
BitbucketSCM
public BitbucketSCM(@CheckForNull String id, @CheckForNull List<hudson.plugins.git.BranchSpec> branches, @CheckForNull String credentialsId, @CheckForNull String sshCredentialsId, @CheckForNull List<hudson.plugins.git.extensions.GitSCMExtension> extensions, @CheckForNull String gitTool, @CheckForNull String serverId, BitbucketRepository repository) -
BitbucketSCM
Regenerate SCM by looking up new repo URLs etc.- Parameters:
oldScm- old scm to copy values from
-
-
Method Details
-
getGitTool
-
buildEnvironment
- Overrides:
buildEnvironmentin classSCM
-
calcRevisionsFromBuild
@CheckForNull public SCMRevisionState calcRevisionsFromBuild(Run<?, ?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Overrides:
calcRevisionsFromBuildin classSCM- Throws:
IOExceptionInterruptedException
-
checkout
public void checkout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
checkoutin classSCM- Throws:
IOExceptionInterruptedException
-
compareRemoteRevisionWith
public PollingResult compareRemoteRevisionWith(Job<?, ?> project, @Nullable Launcher launcher, @Nullable FilePath workspace, TaskListener listener, SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
compareRemoteRevisionWithin classSCM- Throws:
IOExceptionInterruptedException
-
createChangeLogParser
- Specified by:
createChangeLogParserin classSCM
-
getBranches
-
getBrowser
- Overrides:
getBrowserin classSCM
-
getGitSCM
@CheckForNull public hudson.plugins.git.GitSCM getGitSCM() -
getCredentialsId
-
getSshCredentialsId
-
getExtensions
-
getId
-
getProjectKey
-
getProjectName
-
getRepositories
-
getRepositorySlug
-
getRepositoryName
-
getMirrorName
-
getServerId
-
getUserRemoteConfigs
-
setWebhookRegistered
public void setWebhookRegistered(boolean isWebhookRegistered) -
isWebhookRegistered
public boolean isWebhookRegistered() -
getBitbucketSCMRepository
-
getAndInitializeGitScmIfNull
-