Class BitbucketSCMSource
java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSource
com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource
- All Implemented Interfaces:
ExtensionPoint,Describable<jenkins.scm.api.SCMSource>
public class BitbucketSCMSource
extends jenkins.scm.api.SCMSource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItemNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class jenkins.scm.api.SCMSource
PRONOUN -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketSCMSource(BitbucketSCMSource oldScm) Regenerate SCM by looking up new repo URLs etc.BitbucketSCMSource(String id, String credentialsId, String sshCredentialsId, List<jenkins.scm.api.trait.SCMSourceTrait> traits, String projectName, String repositoryName, String serverId, String mirrorName) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) protected jenkins.scm.api.SCMProbecreateProbe(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) Optional<com.cloudbees.plugins.credentials.Credentials>List<jenkins.scm.api.trait.SCMSourceTrait>booleanisEventApplicable(jenkins.scm.api.SCMHeadEvent<?> event) booleanisValid()booleanprotected ObjectThis method gets invoked by XStream after theBitbucketSCMSourceobject is unmarshalled.protected jenkins.scm.api.SCMRevisionretrieve(jenkins.scm.api.SCMHead head, TaskListener listener) protected voidretrieve(jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) retrieveActions(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMHeadEvent event, TaskListener listener) retrieveActions(jenkins.scm.api.SCMSourceEvent event, TaskListener listener) voidsetWebhookRegistered(boolean webhookRegistered) Methods inherited from class jenkins.scm.api.SCMSource
build, canProbe, checkInterrupt, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getDescriptor, getId, getOwner, getPronoun, getTrustedRevision, hashCode, hasId, isCategoryEnabled, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveActions, retrieveRevisions, retrieveRevisions, setId, setOwner, setTraits, toString, withId
-
Constructor Details
-
BitbucketSCMSource
@DataBoundConstructor public BitbucketSCMSource(@CheckForNull String id, @CheckForNull String credentialsId, @CheckForNull String sshCredentialsId, @CheckForNull List<jenkins.scm.api.trait.SCMSourceTrait> traits, @CheckForNull String projectName, @CheckForNull String repositoryName, @CheckForNull String serverId, @CheckForNull String mirrorName) -
BitbucketSCMSource
Regenerate SCM by looking up new repo URLs etc.- Parameters:
oldScm- old scm to copy values from
-
-
Method Details
-
afterSave
public void afterSave()- Overrides:
afterSavein classjenkins.scm.api.SCMSource
-
build
- Specified by:
buildin classjenkins.scm.api.SCMSource
-
getBitbucketSCMRepository
-
getCredentials
-
getCredentialsId
-
getMirrorName
-
getProjectKey
-
getProjectName
-
getRemote
-
getRepositoryName
-
getRepositorySlug
-
getServerId
-
getSshCredentialsId
-
getTraits
- Overrides:
getTraitsin classjenkins.scm.api.SCMSource
-
isEventApplicable
public boolean isEventApplicable(@CheckForNull jenkins.scm.api.SCMHeadEvent<?> event) -
isValid
public boolean isValid() -
isWebhookRegistered
public boolean isWebhookRegistered() -
setWebhookRegistered
public void setWebhookRegistered(boolean webhookRegistered) -
createProbe
protected jenkins.scm.api.SCMProbe createProbe(jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMRevision revision) throws IOException - Overrides:
createProbein classjenkins.scm.api.SCMSource- Throws:
IOException
-
readResolve
This method gets invoked by XStream after theBitbucketSCMSourceobject is unmarshalled. -
retrieve
protected void retrieve(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, jenkins.scm.api.SCMHeadObserver observer, @CheckForNull jenkins.scm.api.SCMHeadEvent<?> event, TaskListener listener) throws IOException, InterruptedException - Specified by:
retrievein classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(jenkins.scm.api.SCMHead head, TaskListener listener) throws IOException, InterruptedException - Overrides:
retrievein classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-
retrieveActions
protected List<Action> retrieveActions(jenkins.scm.api.SCMSourceEvent event, TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveActionsin classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-
retrieveActions
protected List<Action> retrieveActions(jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMHeadEvent event, TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveActionsin classjenkins.scm.api.SCMSource- Throws:
IOExceptionInterruptedException
-