2017-05-08 4 views
0

나는 아래의 명령을 사용하여 대나무 유물을 다운로드 wget을 사용하고 있습니다를 사용하여 대나무에서 이슈를 다운로드는 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

매개 변수에 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