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,456,659
Community Members
 
Community Events
176
Community Groups

Download the zip file from global repo and place it one apache folder

Hello Team, 

 

We are using one zip plugin which is already placed at the global artifact( this has been done by another team) who regularly do building and pushing it to global artifact.

 

Now what we want to do? we want to make the plan which downloads the zip file from the global artifact, unzip it and place it in one location on the application server. 

 

I don't have any clue about this if someone has any idea about this please share your thoughts.

 

Thanks

Pratik

 

 

1 answer

Hi @Pratik if you application server is linux/unix you can user scp  task in bamboo for place your artifact, if you are in windows you can user ms web deploy and make a inline script task for achieve this.

Cheers.

Thanks Omar, do we have sample scp command for downloading zip from artifact and unzip it and push it to server.

Thanks

Pratik

Do you have any sample for scp task which download the zip file unzip it and pushed it furhter. ?

 

Thanks

Pratik

Hi @Pratik there is an example for you (all this task is on deployment proyect):  

1. Download the Artifact (on agent)

 

artifact.JPG2. Send artifact to server (the zip file)scp.JPG

3. Unzip file on the server

unzip.JPG

Let me know it's usefull for you.

Cheers.

Omar.

Thanks, Omar for the very quick reply but I have two questions

1) in the first task itself of artifact download:  how bamboo would know from where should I download the artifacts? I mean where should we have to specify the path. 

e.g:

this is the path where .zip file lies. 

URL: https://globalrepository.ABC.com/artifactory/releases/com/frontend/V2R2.4-RELEASE/PORTAL-UI-V2R2.4-RELEASE.zip

 

I have this understanding regarding normal deployment plan in which we always have main three tasks like

checkout ( where we define the git path of repo)  -> build the application (using maven/gradle) -> deploy on the server(we define server details) 

 

Thanks

Pratik

Hi @Pratik,

1. This download is from build plan and shared artifacts builded there. If you artifact was builded out of plan you must download from source instead of default download.

2. The best practices in CI/CD is

   a. Build you app on build plan (check out your code, run test, create artifacts, etc)

   b. If the build plan if success deploy on each environment with Deployment Project.

Cheers.

Omar.

   

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events