這是我將檔案單獨上傳到我們的 Artifactory 的方式:
curl -H 'X-JFrog-Art-Api:<API KEY>' -XPUT "https://<OUR SERVER>/artifactory/<REPO>/V1/<FILE>;deb.distribution=trusty;deb.component=main;deb.architecture=all" -T <FILE>
我似乎無法找到如何上傳整個目錄(包含 debian 包),我認為它會是這樣的:
curl -H 'X-JFrog-Art-Api:<API KEY>' -XPUT "https://<OUR SERVER>/artifactory/<REPO>/<DIRECTORY>/;deb.distribution=trusty;deb.component=main;deb.architecture=all" -T <DIRECTORY>
有人可以幫我嗎?謝謝!
uj5u.com熱心網友回復:
我們可以利用Archive REST API中的Deploy 工件上傳整個目錄。但是,我們需要存檔目錄,Artifactory 會在使用標題“X-Explode-Archive: true”部署時分解存檔
示例:- curl -H 'X-JFrog-Art-Api:API KEY' -XPUT "http://OUR SERVER/artifactory/test-debianlocal/pool/deb.zip;deb.distribution=wheezy;deb.component= main;deb.architecture=i386" --header "X-Explode-Archive: true" -T deb.zip
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/403603.html
標籤:
