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

后端 未结 6 740
一个人的身影
一个人的身影 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:36

    Take a look the Artifactory REST API, mostly you can't use scp command, instead use the curl command towards REST API.

    $ curl -X POST $SERVER/$PATH/$FILE --data @localfile
    

    Mostly it looks like

    $ curl -X POST http://localhost:8081/artifactory/abc-snapshot-local/remotepath/remotefile --data @localfile
    

    The scp command is only used if you really want to access the internal folder which is managed by artifactory

提交回复
热议问题