Class OrasGenericArtifactConfig
java.lang.Object
io.jenkins.plugins.oras_artifacts.OrasGenericArtifactConfig
- All Implemented Interfaces:
Describable<OrasGenericArtifactConfig>, Serializable
@Extension
public class OrasGenericArtifactConfig
extends Object
implements Describable<OrasGenericArtifactConfig>, Serializable
Global configuration of the ORAS registry used to store archived artifacts and stashes.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOrasGenericArtifactConfig(String registryUrl, String credentialsId, String prefix, boolean insecure) -
Method Summary
Modifier and TypeMethodDescriptionBuild a newRegistryClientfrom this configuration.static OrasGenericArtifactConfigget()static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentialsgetCredentials(String credentialsId) Optional prefix (namespace) prepended to every repository name derived from a job full name.booleanrepositoryFor(String jobFullName) Build the OCI repository name for the given Jenkins job full name, honoring the configured prefix.io.jenkins.plugins.oras_artifacts.OrasConnectionresolve()Resolve the credentials referenced bygetCredentialsId()into a self-contained, serializable connection descriptor that can be sent to an agent over remoting (unlike this class, which relies on controller-only APIs such asCredentialsProvider).voidsetCredentialsId(String credentialsId) voidsetInsecure(boolean insecure) voidvoidsetRegistryUrl(String registryUrl) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Describable
getDescriptor
-
Constructor Details
-
OrasGenericArtifactConfig
@DataBoundConstructor public OrasGenericArtifactConfig() -
OrasGenericArtifactConfig
-
-
Method Details
-
getRegistryUrl
-
setRegistryUrl
-
getCredentialsId
-
setCredentialsId
-
getPrefix
Optional prefix (namespace) prepended to every repository name derived from a job full name. -
setPrefix
-
isInsecure
public boolean isInsecure() -
setInsecure
@DataBoundSetter public void setInsecure(boolean insecure) -
get
-
repositoryFor
-
createClient
Build a newRegistryClientfrom this configuration. Must be called on the Jenkins controller since it looks up credentials from theCredentialsProviderstore. -
resolve
public io.jenkins.plugins.oras_artifacts.OrasConnection resolve()Resolve the credentials referenced bygetCredentialsId()into a self-contained, serializable connection descriptor that can be sent to an agent over remoting (unlike this class, which relies on controller-only APIs such asCredentialsProvider). -
getCredentials
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials(String credentialsId)
-