I am trying to use jfrog action for github: https://github.com/marketplace/actions/setup-jfrog-cli
This action allows to configure jfrog. I am using it to upload and download artifacts from repo.
The way I use it is:
- run: jf rt dl path_to_file --user=<usr_name> --password=${{ secrets.<secret_id> }} --url=<url>
It works fine. But I do not want to specify my username, password and url each time I call jf
. I found command jf c add
which should configure global settings. However, I did not find any examples of how to use it. I have tried:
- run: jf c add --user=<usr_name> --password=${{ secrets.<secret_id> }} --url=<url>
But it did not work.
Also tried: Jfrog CLI does not respect configured API key
But it gives an error: 'jf rt config' is not a jf command. See --help
Can someone please explain me how to configure global settings using jf c add
? Is it even possible?
Note: I am executing all commands on github actions yaml file.