This plugin allow to define new parameter types in Jenkins to list ORAS Artifacts tags or platform (including container images)
Warning
The ORAS Java SDK is currently in alpha state and might impact the stability of this plugin.
It's configuration and APIs might change in future releases
On job configuration you can configure the parameters.
For example for listing tags of an OCI helm chart.
And listing platforms for an OCI container image.
This will render a dropdown with the available tags for the selected chart.
Authentication is optional and will use default credentials location if available on the controller.
See ORAS Java SDK for more details.
When using ORAS Tag parameters the following env vars are available for the build:
<PARAMETER_NAME>the resolved reference such asghcr.io/jenkinsci/helm-charts/jenkins@sha256:42869d33a9b684f4c960b0256f1c0a444750b6e9fc70d03b929e84d7c728e19a(always set)<PARAMETER_NAME>_TAGthe selected tag such as5.6.0(always set)<PARAMETER_NAME>_REGISTRYthe resolved registry such asghcr.io(always set)<PARAMETER_NAME>_REPOSITORYthe resolved repository such asjenkinsci/helm-charts/jenkins(always set)<PARAMETER_NAME>_DIGESTthe resolved digest such assha256:42869d33a9b684f4c960b0256f1c0a444750b6e9fc70d03b929e84d7c728e19e(only set if valid tag)<PARAMETER_NAME>_TITLEtitle annotation such asjenkins(if available)<PARAMETER_NAME>_DESCRIPTIONdescription annotation (if available)<PARAMETER_NAME>_CREATEDcreated annotation such as2024-09-12T16:01:30Z(if available)<PARAMETER_NAME>_SOURCEsource annotation such ashttps://github.com/jenkinsci/jenkins(if available)
In addition when selecting ORAS platform parameter the following env vars are available:
<PARAMETER_NAME>_PLATFORM_OSthe selected OS of the platform such aslinux(always set)<PARAMETER_NAME>_PLATFORM_ARCHthe selected ARCH of the platform such asamd64(always set)<PARAMETER_NAME>_PLATFORM_VARIANTthe selected VARIANT of the platform such asv8(if available)
Refer to our contribution guidelines
Licensed under MIT, see LICENSE


