无法直接从jenkins url下载artifactory文件
运行此命令:无法直接从jenkins url下载artifactory文件,jenkins,wget,Jenkins,Wget,运行此命令: wget "http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz" 导致错误: --2020-01-01 03:55:35-- http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz Connecting to 10.45.74.220:808
wget "http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz"
导致错误:
--2020-01-01 03:55:35-- http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz Connecting to 10.45.74.220:8080... connected. HTTP request sent, awaiting response... 302 Found Location: http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz/ [following]
--2020-01-01 03:55:35-- http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz/ Reusing existing connection to 10.45.74.220:8080. HTTP request sent, awaiting response... 404 Not Found 2020-01-01 03:55:35 ERROR 404: Not Found.
尝试使用curl命令,如下所示:
curl -H "X-JFrog-Art-Api:$yourAPIToken" -X GET "$completepathoffile" -o 'file2.txt'
您在浏览器中尝试过此url吗?注意:使用浏览器,我可以下载文件,使用wget cmd时,我会遇到上述错误。