Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,610
Community Members
 
Community Events
184
Community Groups

How can I download artifact from specific build using wget if the artifact is shared

I am using wget command on my server  to download artifact which is shared. Every time I am geting 302 response when I try to download . Could you please suggest me how can I download artifact from bamboo url using wget.

1 answer

1 vote
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 06, 2020

Hi Prem,

I was able to download a sample artifact successfully using the below sample command:

wget --quiet --auth-no-challenge --user USERNAME --password PASSWORD http://BambooURL/browse/PROJ-PLAN-BUILDNR/artifact/someartifact.tar.gz --no-check-certificate

You may also use a REST endpoint to download the same:

curl --user username:password http://BASE_URL/browse/{PLAN-KEY}-{BUILD_NUMBER}/artifact/shared/{ARTIFACT_NAME}

How have you constructed your wget command? Please share your output here.

Cheers,
Jey

Hi @Jey 

Now i can download artifact using wget command. Thank you for your support :) . But our bamboo url is like http://BambooURL/browse/{plan-key}-{Application-name}{random number}-{BUILD_NUMBER}/artifact/someartifact.tar.gz

Could you please explain how i can make dynamic URL using bamboo variables. so that i will pass this URL to our scripts to download new artifact.

Note: For every build PLAN-KEY was dynamically changed.

Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 24, 2020 • edited

That's great to know! Thanks for updating us that it works. Do you mind hitting 'Accept Answer' next to my post?

That said, your Bamboo variables are substituted only within Bamboo. You may not run the same command from a command prompt.

If you are running inside Bamboo, you can find the respective default build specific variable from this page - Bamboo Build-specific variables accordingly via a Script task.

Cheers,
Jey

Hi @Jay 

Thank you for clarifying my question. I want to download artifact using access token instead of providing credentials . I add in authorization header . But artifact is not downloaded .  Even i am not getting any error while executing the command could you please help me regarding this.

Thanks,

Prem

Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 05, 2020

Hey Prem,

How does the command look like?

Cheers,
Jey

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events