Release Lifecycle Management
Overview
This page describes how to use JFrog CLI with Release Lifecycle Management.
Note
Release Lifecycle Management is only available since Artifactory 7.63.2.
Syntax
When used with JFrog Release Lifecycle Management, JFrog CLI uses the following syntax:
Creating a release bundle
The create command allows creating a release bundle using file specs. The file spec may be of one of the following creation sources:
Published build infos.
<build-number>
is optional, latest build will be used if empty.includeDeps
is optional, false by default.project
is optional, default project will be used if empty.Existing release bundles.
project
is optional, default project will be used if empty.A pattern of artifacts in Artifactory.
Only
pattern
is mandatory.recursive
is true by default.AQL query.
Only a single AQL query may be provided.
Commands Params
Examples
Example 1
Create a release bundle with name "myApp" and version "1.0.0", using signing key pair "myKeyPair". The release bundle will include artifacts corresponding to the creation source in the provided file spec.
Example 2
Create a release bundle synchronously, in project "project0".
Example 3
Create a release bundle using file spec variables.
Promoting a release bundle
This command allows promoting a release bundle to a target environment.
Commands Params
Examples
Example 1
Promote a release bundle named "myApp" version "1.0.0" to environment "PROD". Use signing key pair "myKeyPair".
Example 2
Promote a release bundle synchronously to environment "PROD". The release bundle is named "myApp", version "1.0.0", of project "project0". Use signing key pair "myKeyPair".
Example 3
Promote a release bundle while including certain repositories.
Example 4
Promote a release bundle while excluding certain repositories.
Distributing a release bundle
This command distributes a release bundle to an edge node.
Distribution Rules Structure
The Distribution Rules format also supports wildcards. For example:
Examples
Example 1
Distribute the release bundle named myApp with version 1.0.0. Use the distribution rules defined in the specified file.
Example 2
Distribute the release bundle named myApp with version 1.0.0 using the default distribution rules. Map files under the source
directory to be placed under the target
directory.
Example 3
Synchronously distribute a release bundle associated with project "proj"
Deleting release bundle locally
This command allows deleting all release bundle promotions to an environment or deleting a release bundle locally altogether. Deleting locally means distributions of the release bundle will not be deleted.
Examples
Example 1
Locally delete the release bundle named myApp with version 1.0.0 altogether.
Example 2
Delete a release bundle locally altogether. Run the command synchronously and skip the confirmation message.
Example 3
Delete all promotions of the release bundle to environment "PROD".
Deleting release bundle remotely
This command will delete distributions of a release bundle from edge nodes.
Examples
Example 1
Delete the distributions of release bundle named myApp with version 1.0.0 from edge nodes matching the provided distribution rules defined in the specified file.
Example 2
Delete the distributions of the release bundle associated with project "proj" from the provided edge nodes. Run the command synchronously and skip the confirmation message.
Exporting Release Bundle archive
JFrog Lifecycle Management supports distributing your Release Bundles to remote Edge nodes within an air-gapped environment. This use case is mainly intended for organizations that have two or more JFrog instances that have no network connection between them.
The following command allows exporting a Release Bundle as an archive to the filesystem that can be transferred to a different instance in an air-gapped environment.
Example
Export release bundle named "myApp" and version 1.0.0
Example
Download to a specific location
Importing Release Bundle archive
Import a Release Bundle archive from a release bundle exported zip file.
Please note this functionality only works on Edge nodes within an air-gapped environment.
Example
Import a Release Bundle named "myExportedApp" and version 1.0.0
Last updated