By registering deployed artifact metadata to CloudBees Unify, teams can track and manage artifact deployments across different environments. This enables DORA metrics, environment inventory tracking, and deployment analytics for artifacts deployed through CloudBees CI or Jenkins workflows. Configure your CI pipeline to register deployed artifacts to CloudBees Unify with the artifact identifier, target environment, and labels.
Configure your Multibranch Pipeline to register deployed artifacts
Register the deployment of your artifacts to track which versions have been deployed to specific environments.
To register deployed artifacts from your CI pipeline to CloudBees Unify:
-
Integrate your controller or operations center with CloudBees Unify by completing the steps in Integrate a single controller with CloudBees Unify or Integrate multiple controllers via the CloudBees CI operations center.
-
Register your build artifact using the
registerBuildArtifactMetadatastep to obtain the artifact ID. -
Specify a
registerDeployedArtifactMetadatastep in your Jenkinsfile that contains the required inputs listed in the table below:Table 1. Input details Input name Data type Required? Description artifactIdString
No
The artifact’s ID, returned as the output value of the
registerBuildArtifactMetadatastep. For example,def artifactId = registerBuildArtifactMetadata(…). Either this orartifactUrlmust be present.artifactUrlString
No
URL of the deployed artifact. Either this or
artifactIdmust be present.targetEnvironmentString
Yes
The artifact’s target environment. The environment must already be configured in CloudBees Unify.
labelsString
No
Comma-separated labels attached to the artifact (for example,
latest).allowNoMatchingComponentBoolean
No
If set to
false(the default), this step fails if the component is not registered in CloudBees Unify. If set totrue, this step succeeds even if the component doesn’t exist, logging the error instead..
View deployed CI build artifacts
To view the deployed artifacts for a build:
-
Select the organization and component associated with the CI build.
-
Select .
-
Select the build name to view the build details in .
-
Select Deployments to list only the deployed artifacts generated during that build.