我使用wget使用以下命令下载竹子工件
wget --http-user='userName' --http-password='*****' 'http://localhost/rest/api/latest/plan/AP-BAF/artifact?os_authType=basic' --no-check-certificate
where AP-BAF is the build plan and that plan has two stages and each stage produce artifacts.I want to download these two artifacts.
When I enter this command in command prompt,it shows the below output,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><artifacts expand="artifa
cts"><link href="http://localhost/rest/api/latest/plan/AP-BAF
/artifact" rel="self"/><artifacts start-index="0" max-result="0" size="0"/></art
ifacts>
When i browse through bamboo and I can see the artifacts produced by the build.
Please help me as this is the high priority.
答案 0 :(得分:0)
尝试在参数中使用os_username和os_password。有关详细信息,请参阅https://jira.atlassian.com/browse/BAM-7259。
wget --save-cookies cookies.txt --keep-session-cookies --no-check-certificate https://bamboo/userlogin\!default.action\?os_destination=%2Fstart.action\&os_username=myusername\&os_password=*****\&os_cookie=true