public class BitbucketSCMSource extends jenkins.scm.api.SCMSource
Modifier and Type | Class and Description |
---|---|
static class |
BitbucketSCMSource.DescriptorImpl |
jenkins.scm.api.SCMSource.SourceByItem
ExtensionPoint.LegacyInstancesAreScopedToHudson
PRONOUN
Constructor and Description |
---|
BitbucketSCMSource(String repoOwner,
String repository)
Constructor.
|
BitbucketSCMSource(String id,
String repoOwner,
String repository)
Deprecated.
use
BitbucketSCMSource(String, String) and SCMSource.setId(String) |
build, canProbe, checkInterrupt, createProbe, defaultListener, equals, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchActions, fetchActions, fetchActions, fetchRevisions, fetchRevisions, fromSCMFileSystem, getCategories, getCriteria, getId, getOwner, getPronoun, hashCode, hasId, isCategoryEnabled, newProbe, parentHeads, parentRevisions, retrieve, retrieve, retrieve, retrieve, retrieve, retrieve, retrieveActions, retrieveRevisions, retrieveRevisions, setId, setOwner, toString, withId
@DataBoundConstructor public BitbucketSCMSource(@NonNull String repoOwner, @NonNull String repository)
repoOwner
- the repository owner.repository
- the repository name.@Deprecated public BitbucketSCMSource(@CheckForNull String id, @NonNull String repoOwner, @NonNull String repository)
BitbucketSCMSource(String, String)
and SCMSource.setId(String)
id
- the id.repoOwner
- the repository owner.repository
- the repository name.@CheckForNull public String getCredentialsId()
@DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
@NonNull public String getRepoOwner()
@NonNull public String getRepository()
@NonNull public String getServerUrl()
@DataBoundSetter public void setServerUrl(@CheckForNull String serverUrl)
@NonNull public String getEndpointJenkinsRootUrl()
@NonNull public List<jenkins.scm.api.trait.SCMSourceTrait> getTraits()
getTraits
in class jenkins.scm.api.SCMSource
@DataBoundSetter public void setTraits(@CheckForNull List<jenkins.scm.api.trait.SCMSourceTrait> traits)
setTraits
in class jenkins.scm.api.SCMSource
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @DataBoundSetter public void setBitbucketServerUrl(String url)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @CheckForNull public String getBitbucketServerUrl()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @CheckForNull public String getCheckoutCredentialsId()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @DataBoundSetter public void setCheckoutCredentialsId(String checkoutCredentialsId)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @NonNull public String getIncludes()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @DataBoundSetter public void setIncludes(@NonNull String includes)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @NonNull public String getExcludes()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @DataBoundSetter public void setExcludes(@NonNull String excludes)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") @DataBoundSetter public void setAutoRegisterHook(boolean autoRegisterHook)
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince(value="2.2.0") public boolean isAutoRegisterHook()
public BitbucketRepositoryType getRepositoryType() throws IOException, InterruptedException
IOException
InterruptedException
public BitbucketApi buildBitbucketClient()
public BitbucketApi buildBitbucketClient(PullRequestSCMHead head)
public BitbucketApi buildBitbucketClient(String repoOwner, String repository)
public void afterSave()
afterSave
in class jenkins.scm.api.SCMSource
protected void retrieve(@CheckForNull jenkins.scm.api.SCMSourceCriteria criteria, @NonNull jenkins.scm.api.SCMHeadObserver observer, @CheckForNull jenkins.scm.api.SCMHeadEvent<?> event, @NonNull TaskListener listener) throws IOException, InterruptedException
retrieve
in class jenkins.scm.api.SCMSource
IOException
InterruptedException
protected jenkins.scm.api.SCMRevision retrieve(jenkins.scm.api.SCMHead head, TaskListener listener) throws IOException, InterruptedException
retrieve
in class jenkins.scm.api.SCMSource
IOException
InterruptedException
public SCM build(jenkins.scm.api.SCMHead head, jenkins.scm.api.SCMRevision revision)
build
in class jenkins.scm.api.SCMSource
@NonNull public jenkins.scm.api.SCMRevision getTrustedRevision(@NonNull jenkins.scm.api.SCMRevision revision, @NonNull TaskListener listener) throws IOException, InterruptedException
getTrustedRevision
in class jenkins.scm.api.SCMSource
IOException
InterruptedException
public BitbucketSCMSource.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<jenkins.scm.api.SCMSource>
getDescriptor
in class jenkins.scm.api.SCMSource
@NonNull protected List<Action> retrieveActions(@CheckForNull jenkins.scm.api.SCMSourceEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
retrieveActions
in class jenkins.scm.api.SCMSource
IOException
InterruptedException
@NonNull protected List<Action> retrieveActions(@NonNull jenkins.scm.api.SCMHead head, @CheckForNull jenkins.scm.api.SCMHeadEvent event, @NonNull TaskListener listener) throws IOException, InterruptedException
retrieveActions
in class jenkins.scm.api.SCMSource
IOException
InterruptedException
@NonNull public jenkins.scm.api.SCMHeadOrigin originOf(@NonNull String repoOwner, @NonNull String repository)
public static int getEventDelaySeconds()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static void setEventDelaySeconds(int eventDelaySeconds)
eventDelaySeconds
- number of seconds to delay, will be restricted into a value within the
range [0,300]
inclusiveCopyright © 2016–2022. All rights reserved.