Class BitbucketSCMNavigator
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<jenkins.scm.api.SCMNavigator>
-
- jenkins.scm.api.SCMNavigator
-
- com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.SCMNavigator>
public class BitbucketSCMNavigator extends jenkins.scm.api.SCMNavigator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketSCMNavigator.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BitbucketSCMNavigator(String repoOwner)
BitbucketSCMNavigator(String repoOwner, String credentialsId, String checkoutCredentialsId)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getBitbucketServerUrl()
Deprecated.String
getCheckoutCredentialsId()
Deprecated.String
getCredentialsId()
String
getEndpointJenkinsRootUrl()
String
getExcludes()
Deprecated.String
getIncludes()
Deprecated.String
getPattern()
Deprecated.String
getProjectKey()
String
getRepoOwner()
String
getServerUrl()
List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>>
getTraits()
protected String
id()
boolean
isAutoRegisterHooks()
Deprecated.List<Action>
retrieveActions(jenkins.scm.api.SCMNavigatorOwner owner, jenkins.scm.api.SCMNavigatorEvent event, TaskListener listener)
void
setAutoRegisterHooks(boolean autoRegisterHook)
Deprecated.void
setBitbucketServerUrl(String url)
Deprecated.void
setCheckoutCredentialsId(String checkoutCredentialsId)
Deprecated.void
setCredentialsId(String credentialsId)
void
setExcludes(String excludes)
Deprecated.void
setIncludes(String includes)
Deprecated.void
setPattern(String pattern)
Deprecated.void
setProjectKey(String projectKey)
void
setServerUrl(String serverUrl)
void
setTraits(List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> traits)
Sets the behavioural traits that are applied to this navigator and anyBitbucketSCMSource
instances it discovers.void
setTraits(jenkins.scm.api.trait.SCMTrait[] traits)
Sets the behavioural traits that are applied to this navigator and anyBitbucketSCMSource
instances it discovers.void
visitSources(jenkins.scm.api.SCMSourceObserver observer)
-
-
-
Constructor Detail
-
BitbucketSCMNavigator
@DataBoundConstructor public BitbucketSCMNavigator(String repoOwner)
-
BitbucketSCMNavigator
@Deprecated public BitbucketSCMNavigator(String repoOwner, String credentialsId, String checkoutCredentialsId)
Deprecated.
-
-
Method Detail
-
getCredentialsId
@CheckForNull public String getCredentialsId()
-
getRepoOwner
public String getRepoOwner()
-
getProjectKey
public String getProjectKey()
-
setProjectKey
@DataBoundSetter public void setProjectKey(@CheckForNull String projectKey)
-
getTraits
@NonNull public List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> getTraits()
- Overrides:
getTraits
in classjenkins.scm.api.SCMNavigator
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
-
setTraits
@DataBoundSetter public void setTraits(@CheckForNull jenkins.scm.api.trait.SCMTrait[] traits)
Sets the behavioural traits that are applied to this navigator and anyBitbucketSCMSource
instances it discovers. The new traits will take effect on the next navigation through any of thevisitSources(SCMSourceObserver)
overloads orSCMNavigator.visitSource(String, SCMSourceObserver)
.- Parameters:
traits
- the new behavioural traits.
-
setTraits
public void setTraits(@CheckForNull List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> traits)
Sets the behavioural traits that are applied to this navigator and anyBitbucketSCMSource
instances it discovers. The new traits will take effect on the next navigation through any of thevisitSources(SCMSourceObserver)
overloads orSCMNavigator.visitSource(String, SCMSourceObserver)
.- Overrides:
setTraits
in classjenkins.scm.api.SCMNavigator
- Parameters:
traits
- the new behavioural traits.
-
getServerUrl
public String getServerUrl()
-
setServerUrl
@DataBoundSetter public void setServerUrl(String serverUrl)
-
setPattern
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") @DataBoundSetter public void setPattern(String pattern)
Deprecated.
-
setAutoRegisterHooks
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @DataBoundSetter public void setAutoRegisterHooks(boolean autoRegisterHook)
Deprecated.
-
isAutoRegisterHooks
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") public boolean isAutoRegisterHooks()
Deprecated.
-
getCheckoutCredentialsId
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @NonNull public String getCheckoutCredentialsId()
Deprecated.
-
setCheckoutCredentialsId
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @DataBoundSetter public void setCheckoutCredentialsId(String checkoutCredentialsId)
Deprecated.
-
getPattern
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public String getPattern()
Deprecated.
-
setBitbucketServerUrl
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") @DataBoundSetter public void setBitbucketServerUrl(String url)
Deprecated.
-
getBitbucketServerUrl
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") @CheckForNull public String getBitbucketServerUrl()
Deprecated.
-
getEndpointJenkinsRootUrl
@NonNull public String getEndpointJenkinsRootUrl()
-
getIncludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @NonNull public String getIncludes()
Deprecated.
-
setIncludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @DataBoundSetter public void setIncludes(@NonNull String includes)
Deprecated.
-
getExcludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @NonNull public String getExcludes()
Deprecated.
-
setExcludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.2.0") @DataBoundSetter public void setExcludes(@NonNull String excludes)
Deprecated.
-
id
@NonNull protected String id()
- Specified by:
id
in classjenkins.scm.api.SCMNavigator
-
visitSources
public void visitSources(jenkins.scm.api.SCMSourceObserver observer) throws IOException, InterruptedException
- Specified by:
visitSources
in classjenkins.scm.api.SCMNavigator
- Throws:
IOException
InterruptedException
-
retrieveActions
@NonNull public List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMNavigatorOwner owner, @CheckForNull jenkins.scm.api.SCMNavigatorEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
- Overrides:
retrieveActions
in classjenkins.scm.api.SCMNavigator
- Throws:
IOException
InterruptedException
-
-