The CloudBees CD/RO Artifact plugin provides an interface to the CloudBees CD/RO artifact repository for artifact version publish and retrieve operations. For more information about the artifact repository, refer to Manage artifacts.
Prerequisites
This plugin uses an updated version of Perl, cb-perl shell (Perl v5.32), and requires CloudBees CD/RO agents version 10.3+ to work.
Plugin Version 1.2.1.2024022211. Revised on February 23, 2024.
Create Artifact plugin configurations
Plugin configurations are sets of parameters that can be applied across some, or all, plugin procedures. They can reduce the repetition of common values, create predefined parameter sets, and securely store credentials. Each configuration is given a unique name that is entered in the designated parameter for the plugin procedures that use them. The following steps illustrate how to create a plugin configuration that can be used by one or more plugin procedures.
To create a plugin configuration:
-
Navigate to
. -
Select Add plugin configuration to create a new configuration.
-
In the New Configuration window, specify a Name for the configuration.
-
Select the Project that the configuration belongs to.
-
Optionally, add a Description for the configuration.
-
Select the appropriate Plugin for the configuration.
-
Configure the plugin configuration parameters.
-
Select OK.
Depending on your plugin configuration and how you run procedures, the Differences in plugin UI behavior. field may behave differently in the CloudBees CD/RO UI. For more information, refer to |
Create Artifact plugin procedures
Plugin procedures can be used in procedure steps, process steps, and pipeline tasks, allowing you to orchestrate third-party tools at the appropriate time in your component, application process, or pipeline.
Depending on your plugin configuration and how you run procedures, the Differences in plugin UI behavior. field may behave differently in the CloudBees CD/RO UI. For more information, refer to |
Publish
Creates a step to publish a new artifact version.
Input parameters
Parameter | Description |
---|---|
Artifact |
Required. Artifact name, in the form: |
Version |
Artifact version, in the form: |
Repository |
Required. Name of the repository where the new artifact version is published. |
Enable Compression? |
If selected, the artifact version is compressed before it is stored in the repository. |
Follow Symbolic Links? |
Name of the cluster in which server is to be added. |
From directory |
Name of the directory in the job’s workspace that contains files that comprise the artifact version to be published. If not specified, the entire workspace is used. |
Add Include Pattern |
File patterns to include, to limit the files that are published. If no patterns are specified, all files are included. |
Add Exclude Pattern |
File patterns to exclude, to limit the files that are published. If no patterns are specified, no files are excluded. |
Add Dependent Artifact Version |
Dependent artifact versions, in the form: |
Retrieve
Retrieves an artifact version.
Parameter | Description |
---|---|
Artifact |
Required. Artifact name, in the form: |
Version |
Artifact version, in the form: |
Retrieve to directory |
Download the artifact version to a specific directory. |
Retrieved Artifact Location Property |
Name or property sheet path used by the step to create a property sheet. This property sheet stores information about the retrieved artifact version(s), including their location in the file system. |
From directory |
Name of the directory in the job’s workspace that contains files that comprise the artifact version to be published. If not specified, the entire workspace is used. |
Add Filter |
Search filter to apply when querying the CloudBees CD/RO database for the artifact version to retrieve. |
Artifact retrieval dependency order explained
The order of dependencies registered for an artifact version are significant. Consider this scenario:
-
A depends on B (any version) and C [1.0, 2.0]
-
B depends on C (any version)
-
C versions 1.0, 2.0, and 3.0 exist
In the version range, syntax [] indicates inclusive and () indicates exclusive.
|
When retrieving A, the dependency algorithm evaluates B first. The algorithm finds that the maximum version of B depends on any version of C, so the algorithm looks for max version C and finds C 3.0. Because this chain is satisfied, the algorithm returns to A and evaluates its next dependency "C [1.0, 2.0]". This results in matching C 1.0. The returned artifacts are: A, B, C 1.0, and C 3.0.
Consider if the A dependency is changed to:
-
A depends on C [1.0, 2.0] and B (any version)
-
B depends on C (any version)
-
C versions 1.0, 2.0, and 3.0 exist
The algorithm will choose C 1.0 first. Then the algorithm evaluates B, determines that its "C (any version)" is satisfiable by the already chosen C 1.0. The returned artifacts are A, B, and C 1.0.
SyncArtifactVersion
Input parameters
Parameter | Description |
---|---|
Artifact |
Required. Artifact name, in the form: |
Version |
Required. Artifact version, in the form: |
Source Repository |
Required. Name of the repository, where the artifact is retrieved. |
Target Repository |
Required. Name of the repository, where the artifact is uploaded. |
Add target repository |
Name of additional repositories, where the artifact is uploaded. |
Overwrite? |
If selected, artifacts on target repositories are overwritten. |
Upload in parallel? |
If selected, artifacts are uploaded to the target repository in parallel. |
Release notes
EC-Artifact 1.2.1
-
Improved SSL/TLS certificate validation to ensure that when the Ignore SSL issues parameter is selected that SSL/TLS validation is properly disabled.