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 classes/interfaces inherited from class jenkins.scm.api.SCMSource
jenkins.scm.api.SCMSource.SourceByItem
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class jenkins.scm.api.SCMSource
PRONOUN
-
Constructor Summary
ConstructorDescriptionBitbucketSCMSource
(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 TypeMethodDescriptionvoid
build
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) protected jenkins.scm.api.SCMProbe
createProbe
(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision) Optional<com.cloudbees.plugins.credentials.Credentials>
List<jenkins.scm.api.trait.SCMSourceTrait>
boolean
isEventApplicable
(jenkins.scm.api.SCMHeadEvent<?> event) boolean
isValid()
boolean
protected Object
This method gets invoked by XStream after theBitbucketSCMSource
object is unmarshalled.protected jenkins.scm.api.SCMRevision
retrieve
(jenkins.scm.api.SCMHead head, TaskListener listener) protected void
retrieve
(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) void
setWebhookRegistered
(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:
afterSave
in classjenkins.scm.api.SCMSource
-
build
- Specified by:
build
in classjenkins.scm.api.SCMSource
-
getBitbucketSCMRepository
-
getCredentials
-
getCredentialsId
-
getMirrorName
-
getProjectKey
-
getProjectName
-
getRemote
-
getRepositoryName
-
getRepositorySlug
-
getServerId
-
getSshCredentialsId
-
getTraits
- Overrides:
getTraits
in 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:
createProbe
in classjenkins.scm.api.SCMSource
- Throws:
IOException
-
readResolve
This method gets invoked by XStream after theBitbucketSCMSource
object 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:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieve
protected jenkins.scm.api.SCMRevision retrieve(jenkins.scm.api.SCMHead head, TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieve
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieveActions
protected List<Action> retrieveActions(jenkins.scm.api.SCMSourceEvent event, TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveActions
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-
retrieveActions
protected List<Action> retrieveActions(jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMHeadEvent event, TaskListener listener) throws IOException, InterruptedException - Overrides:
retrieveActions
in classjenkins.scm.api.SCMSource
- Throws:
IOException
InterruptedException
-