Using the latest JFrog products?
JFrog Platform User Guide
JFrog Distribution 1.x Documentation
To get the latest version, go to the JFrog Unified Platform
Creating a Release Bundle
JFrog Distribution enables creating and distributing release bundles from any Artifactory service to which it is connected through JFrog Mission Control. Each release bundle may only contain artifacts from a single Artifactory service.
To create a release bundle, Distribution runs queries against Artifactory in order to retrieve the required artifact references and properties. Only those artifacts to which the triggering user has access can be collected into the release bundle.
To prevent tampering with the release bundle, it is signed by JFrog Distribution using a GPG key. The same GPG key is then used by the Artifactory Edge to validate the release bundle before it is accepted.
Release bundles can be created using the REST API or through the JFrog Distribution UI. In either case, you define the artefacts to be included in the release bundle through a set of queries you can define.
Creating a release bundle requires Release Bundle write permissions.
A Release Bundle version can include up to 3,000 artifacts. This number is not limited in the product, but exceeding it is highly unrecommended.
Using the REST API
You can create release bundles using the Create Release Bundle Version REST API call.
Using the UI
To create a new release bundle:
- Click Add a Release Bundle from the Release Bundles page.
- Click Create. This will create a draft release bundle that can be edited, signed, and then finally distributed.
Alternatively, you can skip the draft phase by clicking Create & Sign to sign and finalize the process without a draft phase.
Note: A signed Release Bundle cannot be edited.
The Release Bundle page is divided into three panels: General Details, Spec and Release Notes.
|The release bundle name.|
|The release bundle version.|
|The release bundle description.|
This section specifies the Artifactory service from which the release bundle will be assembled (remember, a release bundle can only be assembled from a single Artifactory service), and the different queries that will be used to assemble the artifacts. For more details on how to define the queries, please refer to Adding a Query.
|The source Artifactory service from which artifacts will be gathered.|
|The query name.|
|The query details.|
This section specifies release notes for the release bundle.
|The release notes format. Supported types include: Markdown, Asciidoc and plain text.|
Edit | Preview
|Use these links to edit the release notes in your selected format and then preview how they will look once rendered.|
Adding a Query
There are two ways to build a query: Using AQL and using a simple query builder.
To select the way you want to build your query, hover over Create Query.
To add an AQL query, under Create Query, select Add AQL Query.
This will launch a 3-step wizard.
In the Query Details step, give your query a name and provide the AQL expression to use for assembling the artifacts.
Using the Query Builder
The query builder lets you build your query by filling a simple form. The parameters you enter are eventually translated into an AQL query which you can view by setting the Show AQL checkbox at the end of the form.
To use the query builder, under Create Query, select Add Query
This will launch a 3-step wizard.
In the Query Details step, start by giving your query a name. You can then specify different search criteria including:
- Repository names
- Build names and numbers
- Properties with specific values
- Include and Exclude patterns
Note that you can specify multiple values for each of these parameters by clicking the '+' button to the right of the parameter.
Using the And | Or options you can add multiple properties in a single click of a button.
After specifying your query details (whether using an AQL query or the query builder), you can view the artifacts that will be included in your release bundle under the Preview Artifacts tab.
To prevent artifacts with issues or vulnerabilities from being delivered to their target Artifactory services, release bundles that contain artifacts which have been blocked for download by JFrog Xray due to a Security Rule or a License Rule, can not be signed, and consequently, can not be distributed. If the query you used to select the artifacts for a release bundle pulls in a blocked artifact, the artifact will be included in the release bundle, and the Xray Status column will indicate that it has been blocked. An attempt to sign this release bundle will fail and Distribution will display an error message.
If the artifact ceases to be blocked for download, you need to run the query that pulls the artifact into the release bundle again, so the indication that it is blocked is removed. Once the "Blocked" indication is removed, the release bundle can be signed and distributed.
Note that if the source or target Artifactory service specified for the release bundle does not have a correct and valid license, Distribution will display an error.
The Additional Details tab lets you specify two more parameters for your release bundle:
|Specify a list of properties which will be attached to all artifacts in your release bundle during the distribution process, in addition to those that they already have.|
|Specify a list of mappings to govern where artifacts will be placed in your target Artifactory service according to their location in your source Artifactory service. You may use any of the Path Mapping Templates provided, or set up custom mappings of your own.|
Path Mapping Templates
As a convenience, JFrog Distribution provides a set of commonly used templates you can use to set up your path mappings. Simply select one of the templates listed under Use Template, and then modify the placeholders to correspond with your setup.
The templates provided are:
|All files in a specific repository on the source Artifactory service are mapped to a different repository on the target.|
|All files are moved to a specific folder in the target.|
|All files in a specific folder on the source Artifactory service are mapped to a different folder on the target.|
Including Docker Images in a Release Bundle
Simplified Docker Image Queries
From Distribution 1.8.0, as part of creating a new Release Bundle, it is sufficient to specify query criteria that will match the manifest.json of the desired docker image. Distribution will include all the Docker layers of the Docker image associated with that manifest.json file.
For example, we have a Docker image of a PostgreSql version 11.1 in a Docker repository called
The content of the repository has the following hierarchy:
manifest.json file includes the following property:
All the other files under
docker-local/postgres/11.1 are the layers composing this specific image.
To include all the artifacts in the image (manifest and layers) it is sufficient to specify a query criteria that will match the
manifest.json of the desired Docker image, for example:
Viewing Release Bundles
The Release Bundle module allows you to view all release bundles managed by JFrog Distribution in one place.
|The release bundle name.|
|The release bundle latest version.|
|The sequential number of the distribution job. Only the last 3 distribution jobs are displayed.|
|The distribution job status.|
|The edge nodes distribution progress percentage.|
To view a single release bundle, click on it from the Release Bundle module.
The Release Bundle page displays three panels of information:
Versions: The list of versions of this release bundle. Select any version to view its details.
General Info: The panel along the top of the screen displays general information such as the version, description, creation date, status and size of the release bundle
Details: This panel displays details about the selected release bundle version in a series of tabs: Content, Release Notes, Distribution Tracking, and Spec.
These are described below:
The Content tab displays the artifacts, builds and metadata that comprise the release bundle.
Click on any artifact or build to view details about it in the right panel in the tab.
Click for direct access
Click on an artifact's source path to be redirected to the right location in the tree browser of the corresponding Artifactory service.
If the artifact has been blocked for download by JFrog Xray (in which case, you will not be able to sign and distribute the release bundle), this will be indicated in the Xray Status field for the selected artifact in the Content tab.
Release Notes Tab
The Release Notes tab displays release notes for the bundle. These can be written in markdown, asciidoc or plain text.
Distribution Tracking Tab
The Distribution Tracking tab provides a history for this release bundle version.
The ID of the distribution action.
Multiple rows with the same ID
You may see multiple rows in this table with the same ID because a single distribution action may distribute a release bundle to several target nodes
|The action that was performed|
|The date and time at which the action started|
The distribution target
Click for direct access
Click on the distribution target name to be redirected directly to its UI
The status of the action
|The percent completion of the action and number of attempts at completion|
Summary of some details about the action.
Click for details
Click on this field to get full details of the action. This is where you can get more details in case of an error.
Redistributing a Release Bundle
Distributing a release bundle may fail for different reasons such as network issues or outage of a target Artifactory service. Once you have remediated the problem preventing distribution, you can redistribute the release bundles to the services where distribution failed. To redistribute release bundles, first select them. Distribution presents a Redistribute icon for each distribution selected. You can now click that icon to redistribute each release bundle individually to the specified target service, or select the Redistribute button at the top of the list to redistribute the release bundle to all target services selected in a batch process.
Use the Filter to display only those distributions that have failed.
The Spec tab displays the source Artifactory service from which the artifacts of this release bundle were assembled as well as the list of queries that assembled the artifacts.
Click the Artifactory service
Clicking on the Artifactory service opens a new tab on the home screen of that service
Clicking on any of the queries expands it displaying the details of the query that governed the assembly of the release bundle artifacts.
You can even check the AQL checkbox to see the final AQL query that was used to assemble the artifacts.
Editing a Release Bundle
- To edit a release bundle, select Edit Version from the Actions list. The state is set to Open.
- Click Save to save the "draft" version of the release bundle. Continue to Save every time you make a change in Edit mode.
Click Save & Sign to sign and finalize the process.
Note: A signed Release Bundle cannot be edited.
Signing a Release Bundle
Signing a release bundle finalizes the process of creating a release bundle. This sets the release bundle status to Signed and the release bundle can no longer be edited.
In addition, Distribution will trigger the source Artifactory to clone the contents of the signed release bundle into an isolated release-bundles repository.
- You can sign a release bundle from the Edit Release Bundle page or from the New Release Bundle page.
If the release bundle includes any artifacts that have been blocked for download by JFrog Xray, your attempt to sign the release bundle will fail, and Distribution will display an error message. Consequently, you will not be able to distribute this release bundle.
- Continue to distributing your release bundle when ready.
Cloning a Release Bundle
To clone an existing release bundle version, select Clone Version from the Actions drop down menu.
This will copy the release bundle spec, including its name and queries, into a new release bundle page. Details on the page can then be adjusted and saved accordingly.
When creating a release bundle, the artifact properties are fetched from Artifactory into the release bundle. Additional custom properties can be added during the initial release bundle version creation using the Create Release Bundle REST API. These properties are transferred over to the Edge Node as part of the distribution process.
Distributing a Release Bundle
Once you have created your release bundle, you can distribute it to the Artifactory Edge Nodes that you are privileged to distribute to.
Circle of Trust
Distribution can only distribute release bundles from an Artifactory service to an Artifactory Edge Node if they are both within the same circle of trust. To learn how to establish a circle of trust, please refer to Cross-Instance Authentication in the JFrog Access User Guide.
Distribution is responsible for triggering the replication process that happens from the source Artifactory to the Edge Nodes. First, it replicates the release bundle info to each Edge Node, and then initiates the replication process in the source Artifactory.
To distribute your release bundle, click "Distribute" from the Release Bundle module, or use the Distribute Release Bundle REST API.
Distribution fetches the available Edge Nodes from Mission Control, and displays a list of the available Edge Nodes according to the specific user permissions.
To distribute an older version of your release bundle, click on it from the Release Bundle module, select on the version you want to distribute, and click "Distribute".
Deleting a Release Bundle
To delete an existing release bundle version, select Delete from the Actions drop down menu.
There are 2 types of delete options:
AQL Search for Release Bundles
To search for release bundles in an Artifactory Edge node, you can use the release and release_artifact domains introduced to AQL in Artifactory 6.0. For details, please refer to Entities and Fields.