Package io.jenkins.plugins.scmoras
Class OrasSCM
java.lang.Object
hudson.scm.SCM
io.jenkins.plugins.scmoras.OrasSCM
- All Implemented Interfaces:
ExtensionPoint,Describable<SCM>
SCM implementation that checks out the content of a repository packaged as an OCI artifact of type
application/vnd.jenkins.repo.manifest.v1+json and pulled with ORAS.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcRevisionsFromBuild(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) voidcheckout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) compareRemoteRevisionWith(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState baseline) static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentialsgetCredentials(Item item, String credentialsId) getKey()booleanbooleanvoidsetCredentialsId(String credentialsId) voidsetInsecure(boolean insecure) Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPolling
-
Field Details
-
ARTIFACT_TYPE_REPO
public static final land.oras.ArtifactType ARTIFACT_TYPE_REPO
-
-
Constructor Details
-
OrasSCM
-
-
Method Details
-
getContainerRef
-
getCredentialsId
-
setCredentialsId
-
isInsecure
public boolean isInsecure() -
setInsecure
@DataBoundSetter public void setInsecure(boolean insecure) -
checkout
public void checkout(@NonNull Run<?, ?> build, @NonNull Launcher launcher, @NonNull FilePath workspace, @NonNull TaskListener listener, @CheckForNull File changelogFile, @CheckForNull SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
checkoutin classSCM- Throws:
IOExceptionInterruptedException
-
calcRevisionsFromBuild
public SCMRevisionState calcRevisionsFromBuild(@NonNull Run<?, ?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @NonNull TaskListener listener) - Overrides:
calcRevisionsFromBuildin classSCM
-
compareRemoteRevisionWith
public PollingResult compareRemoteRevisionWith(@NonNull Job<?, ?> project, @Nullable Launcher launcher, @Nullable FilePath workspace, @NonNull TaskListener listener, @NonNull SCMRevisionState baseline) throws IOException, InterruptedException- Overrides:
compareRemoteRevisionWithin classSCM- Throws:
IOExceptionInterruptedException
-
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()- Overrides:
requiresWorkspaceForPollingin classSCM
-
createChangeLogParser
- Specified by:
createChangeLogParserin classSCM
-
getKey
-
getCredentials
-