public class SSHCheckoutTrait extends jenkins.scm.api.trait.SCMSourceTrait
SCMSourceTrait
for BitbucketSCMSource
that causes the GitSCM
checkout to be performed using a SSH private key rather than the Bitbucket username password credentials used
for scanning / indexing.Modifier and Type | Class and Description |
---|---|
static class |
SSHCheckoutTrait.DescriptorImpl
Our descriptor.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
SSHCheckoutTrait(String credentialsId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder) |
String |
getCredentialsId()
Returns the configured credentials id.
|
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateContext, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
asSetList, asSetList, find
@DataBoundConstructor public SSHCheckoutTrait(@CheckForNull String credentialsId)
credentialsId
- the IdCredentials.getId()
of the credentials to use or
BitbucketSCMSource.DescriptorImpl.ANONYMOUS
to defer to the agent configured
credentials (typically anonymous but not always)@CheckForNull public final String getCredentialsId()
null
to use the build agent's key.protected void decorateBuilder(jenkins.scm.api.trait.SCMBuilder<?,?> builder)
decorateBuilder
in class jenkins.scm.api.trait.SCMSourceTrait
Copyright © 2016–2022. All rights reserved.