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
26
votes
3 answers

GitLab CI syntax to write FOR loop statement?

Below is the script mentioned in the gitlab-ci.yml file. This GitLab CI configuration is valid. But, when the CI/CD build is run, the job fails. Is it something to do with the FOR loop syntax? deploy_dv: stage: deploy_dv variables: …
user2301
  • 1,857
  • 6
  • 32
  • 63
23
votes
1 answer

How do I find my Artifactory server ID?

I'm using jfrog rt config to configure JFrog CLI. It asks for my "Artifactory server ID". I can't find any information about this in the JFrog documentation or on my Artifactory instance. How do I find this server ID?
giraffe
  • 721
  • 3
  • 9
  • 25
8
votes
1 answer

How can I upload multiple pattern files using artifactory/jfrog in jenkinsfile

I am trying to upload multiple patterns like .zip and .tar.gz using Artifactory/Jfrog Files in Jenkins. here is my code def uploadSpec = """{ "files": [ { "pattern": "(*.zip |…
saint
  • 95
  • 1
  • 9
6
votes
1 answer

How to find the latest artifact version with Artifactory Query Language?

Until now, I used the Artifactory REST API to determine the last version (last snapshot) of a maven artifact with groupId and artifactIid: /api/search/latestVersion?g={groupid}&a={artifactid} This gives me exactly a string with the highest/last…
Matthias Lohr
  • 1,696
  • 2
  • 20
  • 32
6
votes
3 answers

How can I download last artifact in Artifactory?

I have some artifacts in Artifactory (OpenSource): I can download an artifact from using jfrog CLI: jfrog rt config --user=admin --password=**** --url=http://foo:8081/artifactory jfrog rt download testproject/01_Develop/01_CI/HPCC-Package-70.zip…
Oscar Foley
  • 6,817
  • 8
  • 57
  • 90
5
votes
1 answer

Jfrog API for list docker tags

Getting 302 for the JFrog REST api for listing docker tags. Documentation :- https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-ListDockerTags Usage: GET /api/docker/{repo-key}/v2/{image name}/tags/list?n=
user1578872
  • 7,808
  • 29
  • 108
  • 206
5
votes
3 answers

Does JFrog Artifactory OSS provides private docker registry?

I'm aware of JFrog Artifactory Pro for support of private docker registry which we can use to push and pull the docker images from Artifactory. I want to know whether same support is available with Artifactory OSS version also or not. Thank you
vinod827
  • 1,123
  • 1
  • 21
  • 45
5
votes
1 answer

Error : Unable to upload into a virtual repository without default local deployment configured (Docker artifactory)

I am trying to push a docker image to a repository. But I am constantly getting the following error - Steps followed - Logged in to " docker login https://docker.wdf.sap.corp:50000/ " Got authorized with my username/password Created a local docker…
Ankur Bag
  • 63
  • 1
  • 1
  • 5
5
votes
0 answers

jfrog cli, how to return "creation date" during search

I am trying to retrieve additional fields from jfrog cli: ./jfrog rt s --spec serach_old_spec.json Having spec: { "files": [ { "aql": { "items.find": { "repo": "myrepo-deb-local", …
Ash Lander
  • 133
  • 1
  • 1
  • 8
4
votes
1 answer

Jenkins with jFrog Artifactory push Docker images

I'm trying to configure new pipeline in Jenkins. I have purchased and installed jFrog artifactory pro on Windows Server and it's up and running at: https://artifactory.mycompany.com I found this sample…
ShaneKm
  • 20,823
  • 43
  • 167
  • 296
4
votes
1 answer

How to upload an artifact to Jfrog Artifactory using Jfrog CLI?

I'm trying to upload an artifact from Bamboo CI using CLI for Jfrog Artifactory I need to upload .p2 plugins and I have two options: Upload the .zip and deploy it as Bundle Artifact Upload the uncompressed folder with all subfolders and data. I'm…
3
votes
1 answer

How do I recalculate a repo's indices with the jfrog cli?

I sometimes have to manually recalculate repo indices: https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-CalculateHelmChartIndex I already use the jfrog cli. This seems like something that would be an easy…
red888
  • 27,709
  • 55
  • 204
  • 392
3
votes
1 answer

How to replace Artifactory File Spec "Spec Vars" from Jenkins Declarative Pipeline

I'm in the process of converting a bunch of old scripts to Jenkins pipeline jobs. For many of our scripts, we used the JFrog CLI to handle all interactions with Artifactory. With Jenkins pipelines, we now have the option to do it through the…
3
votes
2 answers

Artifactory jfrog cli: x509: certificate signed by unknown authority

Environment: Windows Server 2019 Attempting to use the jfrog cli to integrate with an Artifactory server, when I get this error jfrog rt config example-company --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --password=$ARTIFACTORY_PASS [Info]…
Amedee Van Gasse
  • 7,280
  • 5
  • 55
  • 101
3
votes
1 answer

Pip can't find PyPI package in Artifactory

I build the PyPI package and pushed to our on-prem Artifactory by using jfrog CLI and command: tar.gz ./jfrog rt upload --url https://artifacts.XYZ.com/artifactory…
chaotic
  • 391
  • 3
  • 6
  • 19
1
2 3
24 25