Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to zip the artifact in next step

I have an Angular application setting up for the deployment on EC2 instance using AWS CodeDeploy.

My bitbucket-pipelines.yml file contains.

- step:
name: Build and test
deployment: staging
image: node:10.15
- node
script: # Modify the commands below to build your repository.
- echo "$(ls -la)"
- npm install -g @angular/cli
- npm install --dev
- ng build
- echo "$(ls -la dist/qcg-frontend/)"
- dist/**
- step:
name: Generate documentation
- node
- npm run doc
- documentation/**
- step:
name: Deploy to Staging
image: python:3.7
deployment: staging
- apt-get update # required to install zip
- apt-get install -y zip # required for packaging up the application
- pip install boto3==1.3.0 # required for
- zip -r /tmp/ * # package up the application for deployment
- python # run the deployment script

 I have two steps, one to build the application and the next one to build the documentation.

Both are generated in two separate directories which I have defined in the artifacts.


I have to put both artifacts in the same EC2 instance and want to send both artifacts together to the instance.


I have a few questions:

1. How to zip both artifacts

2. Should I copy the Angular source code in EC2 and run the server and manage it by PM2?

3. Or just copy the build directory and point the domain to the index.html file?

4. What should be the best approach for the staging server (where the application will run in the development mode) and production server?

1 answer

0 votes
A quick glance in the la st step I think you should be able to have access to all artifacts in documentation/ and dist/

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

242 views 2 1
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