Register build artifact metadata from your CloudBees CI or Jenkins® pipeline to CloudBees Unify to track and manage compiled binaries, configurations, log files, and other build outputs. Configure your Multibranch Pipeline to automatically register artifact information including version, digest, location, and associated commit details.
| Before you begin, ensure you have completed the CI or Jenkins integration. For setup instructions, refer to Connect CI and Jenkins controllers. |
Configure your Multibranch Pipeline to register build artifacts
Register any outputs of your integrated CI pipeline build workflow run, such as compiled binaries and log files, to CloudBees Unify.
To register artifacts from your CI build to CloudBees Unify:
-
Specify a
registerBuildArtifactMetadatastep in your Jenkinsfile that contains the required inputs listed in the table below:Table 1. Input details Input name Data type Required? Description nameString
Yes
The name of the artifact reported to CloudBees Unify.
urlString
Yes
The URL where the artifact version is located. For example,
docker.io/myapp/myimg:1.0.0.versionString
Yes
The version of the artifact to send to CloudBees Unify for artifact traceability purposes.
digestString
No
The hash or checksum that uniquely identifies the artifact version.
CloudBees recommends specifying the digest to track artifact versions across repositories. For more information, refer to Artifact deployment and publish history.
labelString
No
A comma-separated list of artifact labels.
typeString
No
The type of artifact, such as Docker or Maven.
componentIdString
No
The ID of the component associated with the artifact. If not provided, the default value is the component ID where the CloudBees CI / Jenkins workflow is located.
commitString
Only required if a different repository/branch.[1]
The commit used to build the artifact. The default value is the commit hash from the CloudBees CI / Jenkins build.
commitUrlString
Only required if a different repository/branch.[1]
The URL of the commit used to build the artifact. The default value is the commit URL from the CloudBees CI / Jenkins build.
repositoryUrlString
Only required if a different repository/branch.[1]
The URL of the repository. The default value is the repository URL from the CloudBees CI / Jenkins build.
refString
Only required if a different repository/branch.[1]
The branch or tag ref used to build the artifact. The default value is the ref from the CloudBees CI / Jenkins build.
[1] By default, the artifact version is associated with the code commit from the CI build. If a different commit/repository/branch has been checked out for building the artifact, specify those commit details instead. If you do not want to associate commit details with this artifact version, omit this parameter.
For the full parameter specification and syntax, refer to registerBuildArtifactMetadata reference.
Output
The registerBuildArtifactMetadata step returns the registered artifact’s UUID as a string.
You can capture this value and pass it to subsequent steps, such as registerDeployedArtifactMetadata.
For more information, refer to Register CI deployed artifacts.
View CI build artifacts
View artifacts from your CI build in the same platform as all your other DevOps projects.
To view the artifacts for a build, do one of the following:
-
Access the details for your CI build, and then select Build artifacts to list only the artifacts generated during that build.
-
Select your component, and then select Artifacts to list all artifacts associated with a component. Choose to display only the latest versions or the entire version history.