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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
Omar Herrera Community Leader Apr 19, 2018

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

Omar Herrera Community Leader Apr 23, 2018

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

Omar Herrera Community Leader Apr 23, 2018

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
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

653 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you