Hello and welcome to another JFrog how to video. My name is Eran, and today we’re going to create and distribute a release bundle through the JFrog platform. Before we begin, I would like to mention that although I’ll be using the JFrog platform UI for this tutorial, everything can and should be done via the REST API or the JFrog CLI.
So, let’s begin by going to the distribution service in the platform UI. We will choose the new release bundle. Give it a name. We’ll give it a version and it’s highly recommended to give it a description. So we’ll give it the demo. Now, we need to tell this division which artifacts we want as part of our release bundle. In order to do so, we will use the Artifactory Query Language or AQL. You can either create your own AQL or use the gooey to generate one for you. As a side note, while you can create a very big and complex queries, it is recommended to segment the queries to small and specification for maintainability purposes. For this demo, I’ll create two small queries.
So let’s create our first query or go to create query and I’ll add a query. Give me the name. We’ll choose the relevant repository or repository. This, I’ll choose generic local. In this case, I can even filter by build or property. But in this case, I will only filter by the artifact named pattern. So in this case, I’m going to choose star dot TXT and edit. We would click next and over here. We can see all the artifacts that will collected by the query that we generated. If we’re not satisfied at this point, we can go back, add more filters, modify the filter that we created and look at it again. Assuming we are satisfied, I will click next again. And over here, we can decide about, we can decide on additional details we would like to add to our release bundle as part of the distribution.
The first part is adding properties. We can add key Valley properties that will be added to the artifacts on the destination or even path mapping. I can change the location whether it’s a different folder structure or a different repository of the distributed artifacts. In this case, we’re doing nothing and we’ll just save.
Now, let’s create our second query. So at a query, of course, we’ll give it a name. And this time I’m going to choose an NPM repository. Okay? And over here, I’m going to choose a different pattern. Over here, I’m going to choose a TG Zed pattern, and I will click next. So this time I have only one file collected. This is exactly what I wanted but I want to do two other things. So first of all, I want to add properties to this file, so I’ll do, let’s say, the emo. Okay, we’ll edit and I also want to change the destination repository. So I’ll choose the template, she has changed repository. Over here, we are from app NPM, RC Loco two, very similar, but not exactly the same app NPM release. And I will add this and I will say.
Now, we have two options. We can either just create the release bundle which will make it editable. It will close it. We will be able to review it but we will not be able to distribute it and creating sign. Creating and signing will allow you to distribute the release bundle but you will not be able to edit it. So we need to be very confident before you click the creative side. In this case, because it’s for demo, I am going to create them sign the release bundle with. Usually, we’d like to review the bundle before that. So I will sign the release bundle. I will go to diversion actions and I will decide to distribute diversion. Over here, I need to choose out of my edge nodes where I want to distribute to. In this case, I’m just distributing to one edge node for the demo and we’ll wait for the distribution to finish. It should take a couple of seconds because I have much of this content already in the destination.
Okay! Distribution reports. The distribution was completed successfully. So now, we will go to the edge node. Take a look at the distribution. We’ll see that we’ll have the YouTube demo release bundle. We can review it over here. And of course, we can also repeat the files and the artifact on the three browser. Over here, I just want to show one last thing. I want to show the “Did you say that we moved?” And it did now have the property demo equals okay, in addition to everything else that it had before. That’s it! That was my video and creating and distribution thing, released bundles.
Thank you for watching! And I hope you have enjoyed. Feel free to leave your comments, feedback, or questions in the comment section below.