You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have any sample for scp task which download the zip file unzip it and pushed it furhter. ?
Thanks
Pratik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pratik there is an example for you (all this task is on deployment proyect):
1. Download the Artifact (on agent)
2. Send artifact to server (the zip file)
3. Unzip file on the server
Let me know it's usefull for you.
Cheers.
Omar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.