Class BitbucketSCM
- java.lang.Object
 - 
- hudson.scm.SCM
 - 
- com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCM
 
 
 
- 
- All Implemented Interfaces:
 ExtensionPoint,Describable<SCM>
public class BitbucketSCM extends SCM
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBitbucketSCM.DescriptorImpl- 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson 
 - 
 
- 
Field Summary
- 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG 
 - 
 
- 
Constructor Summary
Constructors Constructor Description BitbucketSCM(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
- 
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 Detail
- 
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
public BitbucketSCM(BitbucketSCM oldScm)
Regenerate SCM by looking up new repo URLs etc.- Parameters:
 oldScm- old scm to copy values from
 
 - 
 
- 
Method Detail
- 
getGitTool
@CheckForNull public String getGitTool()
 
- 
buildEnvironment
public void buildEnvironment(Run<?,?> build, Map<String,String> env)
- 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
public ChangeLogParser createChangeLogParser()
- Specified by:
 createChangeLogParserin classSCM
 
- 
getBranches
public List<hudson.plugins.git.BranchSpec> getBranches()
 
- 
getBrowser
@CheckForNull public RepositoryBrowser<?> getBrowser()
- Overrides:
 getBrowserin classSCM
 
- 
getGitSCM
@CheckForNull public hudson.plugins.git.GitSCM getGitSCM()
 
- 
getCredentialsId
@CheckForNull public String getCredentialsId()
 
- 
getSshCredentialsId
@CheckForNull public String getSshCredentialsId()
 
- 
getExtensions
public List<hudson.plugins.git.extensions.GitSCMExtension> getExtensions()
 
- 
getId
public String getId()
 
- 
getProjectKey
public String getProjectKey()
 
- 
getProjectName
public String getProjectName()
 
- 
getRepositories
public List<BitbucketSCMRepository> getRepositories()
 
- 
getRepositorySlug
public String getRepositorySlug()
 
- 
getRepositoryName
public String getRepositoryName()
 
- 
getMirrorName
public String getMirrorName()
 
- 
getServerId
@CheckForNull public String getServerId()
 
- 
getUserRemoteConfigs
public List<hudson.plugins.git.UserRemoteConfig> getUserRemoteConfigs()
 
- 
setWebhookRegistered
public void setWebhookRegistered(boolean isWebhookRegistered)
 
- 
isWebhookRegistered
public boolean isWebhookRegistered()
 
- 
getBitbucketSCMRepository
public BitbucketSCMRepository getBitbucketSCMRepository()
 
- 
getAndInitializeGitScmIfNull
public hudson.plugins.git.GitSCM getAndInitializeGitScmIfNull(@Nullable Item context) 
 - 
 
 -