Questions tagged [jfrog-cli]

For questions about the command line interface (CLI) tool for JFrog (a DevOps automation platform). QUESTIONS MUST BE ABOUT USING THE CLI IN PROGRAMMING. Questions which are just about using the CLI, options for CLI tools, etc. are OFF-TOPIC on Stack Overflow.

JFrog CLI is a compact and smart client that provides a simple interface that automates access to JFrog products simplifying your automation scripts and making them more readable and easier to maintain.

JFrog CLI works with JFrog Artifactory, JFrog Mission Control, JFrog Bintray and JFrog Xray (through their respective REST APIs) making your scripts more efficient and reliable in several ways:

  • Parallel uploads and downloads
  • Checksum optimization
  • Wildcards and regular expressions
  • Upload preview

For more info about Jfrog CLI, visit Jfrog CLI wiki.

371 questions
2
votes
1 answer

How to know programmatically when jfrog-cli is skipping an already existing file or artifact while downloading?

I'm using jfrog-cli in an automation which updates a database on every successful artifact download. The automation is written in Perl and it is simply using the system exit code jfrog process. Problem is, that jfrog-cli exits with exit code 0 each…
Anand
  • 114
  • 1
  • 2
  • 14
2
votes
1 answer

What is the default tcp port jfrog.exe uses to talk to Artifactory?

Our Artifactory is on a different subnet from Jenkins and Octopus. I need to have firewall rules established for this. We use jfrog.exe to push and retrieve the artifacts as it is much faster than the REST API. What is the default port jfrog.exe…
Dom Tho
  • 21
  • 1
2
votes
0 answers

How to not promote all Docker tags from dev repo to prod using jfrog cli promote command

(I am newbee with respect to Artifactory) I use the JFrog CLI for promoting builds (docker images) from dev repo to prod. When I build I create three tags, one VERSION, one latest and one with a build ID. When I promote using "jfrog rt bpr" command…
2
votes
2 answers

Jenkins declarative pipe, download latest upload (build) from Artifactory and get properties

Any sugesstions on this litle problem is very welcome! :) It works fine to download the latest build but the object does not contain any properties. Is it possible to get the properties from a downloaded build? The gool is to get an inputbox with…
2
votes
1 answer

Remote repository for a go project in Artifactory doesn't proxy?

I'm trying to understand how to work with a remote repository in Artifactory for a Go project. My initial expectation was that it'll work transparently, all I would need to do is to point GORPOXY variable to a virtual repository (with local and…
Leo
  • 1,016
  • 1
  • 13
  • 32
2
votes
0 answers

Get lastest release version from Artifactory Generic repository

I'm working with several repositories, but now I need to download the lastest version of some artifacts from a generic repository. Following wiki instructions I created a new layout like this. Layout description After that, I have added a new…
Eva
  • 21
  • 3
2
votes
0 answers

How to avoid overriding the existing files while uploading to Artifactory using JFrog rt CLI

I am uploading the files to Artifactory server using JFrog CLI using spec file (jfrog rt). I do not see any option to avoid overriding the existing files in Artifactory server while uploading using JFrog CLI. Does anybody know any work around or…
Shivam
  • 61
  • 3
2
votes
0 answers

How to find out the latest jar dependency available in artifactory?

How to find out the latest jar dependency available in artifactory by JFrog based on GroupId and ArtifactId. For example: The below dependency is the latest available .But how the value 5.1.0.RELEASE can be obtained through code?
soumitra chatterjee
  • 2,268
  • 9
  • 26
  • 48
2
votes
1 answer

JFrog CLI specifiy download path for downloaded artifacts

Right now i am working with the JFrog CLI. The JFrog CLI documentation is good but not the best one. I wanted to specify the destination path for the downloaded artifacts from the JFrog Artifactory. jfrog.exe rt search --user=someUser…
Onur Kadem
  • 25
  • 2
  • 4
2
votes
2 answers

Deploy Debian to the Artifactory repo from Jenkins

How to deploy a Debian package from a Jenkins to the Artifactory Debian repo? I used a command in the Jenkins Freestyle job: curl -uUSER:PASS -XPUT…
Dima Kreisserman
  • 663
  • 1
  • 13
  • 33
2
votes
3 answers

How do I base64 encode a password for JFrog Artifactory?

I'm writing a script to configure .npmrc file with JFrog Artifactory credentials. Artifactory/NPM requires the configured password to be base64 encoded, i.e. (with the password…
Mark Thë Brouch
  • 179
  • 3
  • 12
2
votes
1 answer

Artifactory github Repository - downloadBranch

I have github setup as a VCS repository in Artifactory. When using the downloadBrach API through Artifactory (similar to downloading files via git clone), the download appears to include everything except the dot hidden files (.gitignore is an…
user9074332
  • 2,336
  • 2
  • 23
  • 39
2
votes
0 answers

How to specify additional fields returned by AQL in spec file?

I'm search Artifactory using AQL via a spec-file passed to the Jfrog CLI tool. If I were to post AQL directly to the REST API, I'm be able to use a normal, formal AQL statement and use .include("some-field, e.g. stat") to return specific fields.…
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
2
votes
1 answer

search file by property in jfrog artifactory

I am writing a pipeline and as a part of it i need to check if there any file in the artifactory with curtain property. The only way that I found is actually try to download an artifact using spec: def downloadSpec = """{ "files": [ …
2
votes
1 answer

How to promote Build and match custom layout in Artifactory?

I'm using Artifactory Pro with custom repository layouts. I promote my build and move all artifacts to my production repo. But I need to add an article number in this path, so the guys can reference it to their ERP System. I tried some stuff here,…
martina
  • 21
  • 2