How do I deploy a file to Artifactory using the command line?

后端 未结 6 739
一个人的身影
一个人的身影 2020-12-23 20:33

I\'ve spent far more time on this than I care to admit. I am trying to just deploy one file into my Artifactory server from the command line. I\'m doing this using gradle

6条回答
  •  渐次进展
    2020-12-23 21:23

    Instead of using the curl command, I recommend using the jrog CLI.

    Download from here - https://www.jfrog.com/getcli/ and use the following command (make sure the file is executable) -

    ./jfrog rt u  
    

    Here is a simple example:

    ./jfrog rt u sample-service-1.0.0.jar libs-release-local/com/sample-service/1.0.0/
    

    You will be prompt for credentials and the repo URL for the first time.

    You can do lots of other stuff with this CLI tool, check out the detailed instructions here - https://www.jfrog.com/confluence/display/RTF/JFrog+CLI.

提交回复
热议问题