简体   繁体   English

无法直接从 jenkins url 下载工件文件

[英]Not able to download the artifactory file directly from the jenkins url

Running this command:运行此命令:

wget "http://10.45.74.220:8080/job/OA4F-GA-BITBUCKET-REPO/35/appshellarchive-factory.json.gz"

Results in an error:结果报错:

--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'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM