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

Yml is just loading at the first step

This is my yml file: 

image: node:16
pipelines:
branches:
development:
- step:
name: Installation
caches:
- node
script:
- npm install -g @angular/cli
- npm install
- ng build
- ls dist/customer-portal
artifacts:
- dist/** # target folder in bitbucket container
- step:
name: Deploy on server
script:
- pipe: atlassian/scp-deploy:1.2.1
variables:
USER: $USER
SERVER: $DEV_SERVER
REMOTE_PATH: '${DEV_REMOTE_DESTINATION_PATH}'
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/dist/customer-portal/*'
- step:
name : Excute script to run on server
script:
- pipe: atlassian/ssh-run:0.2.8
variables:
SSH_USER: $USER
MODE: 'command'
SERVER: $DEV_SERVER
COMMAND: 'sudo systemctl restart nginx'

 

 

I am trying to create build and then using scp i am copying build to sc2 instance, ssh keys are also configured , it is just loading after showing output like below 

+ ng build
Your global Angular CLI version (14.0.0) is greater than your local version (9.0.7). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
- Generating browser application bundles...
✔ Browser application bundle generation complete.
- Generating ES5 bundles for differential loading...
✔ ES5 bundle generation complete.
- Copying assets...
✔ Copying assets complete.
- Generating index html...
✔ Index html generation complete.
Initial Chunk Files | Names | Size
vendor-es5.js | vendor | 7.04 MB
vendor-es2015.js | vendor | 5.75 MB
main-es5.js | main | 3.53 MB
main-es2015.js | main | 2.99 MB
polyfills-es5.js | polyfills-es5 | 654.03 kB
polyfills-es2015.js | polyfills | 141.31 kB
styles.css | styles | 103.45 kB
runtime-es2015.js | runtime | 9.17 kB
runtime-es5.js | runtime | 9.17 kB
| Initial ES5 Total | 11.31 MB
| Initial ES2015 Total | 8.98 MB
Lazy Chunk Files | Names | Size
checkout-checkout-module-es5.js | checkout-checkout-module | 310.25 kB
checkout-checkout-module-es2015.js | checkout-checkout-module | 291.16 kB
quotation-quotation-module-es5.js | quotation-quotation-module | 10.67 kB
quotation-quotation-module-es2015.js | quotation-quotation-module | 10.39 kB
orders-orders-module-es5.js | orders-orders-module | 10.12 kB
orders-orders-module-es2015.js | orders-orders-module | 9.79 kB
cart-cart-module-es5.js | cart-cart-module | 4.29 kB
cart-cart-module-es2015.js | cart-cart-module | 3.81 kB
Build at: 2022-06-07T15:33:18.278Z - Hash: 11b795e25adf28245fe9 - Time: 39877ms
For other my yml file is working fine but for this it is not working it is just loading........kindly help me in this
Thank you for the help

1 answer

0 votes
Patrik S Atlassian Team Jun 09, 2022

Hello @mohan_b ,

Thank you for reaching out to Atlassian Support!

There was a recent bug in node cli 14 that was making some ng commands to hung as I suspect this was affecting your pipeline. This bug should already be fixed accordingly to the following thread : 

Could you please confirm if you are still facing the issue? 

If yes, one of the workarounds you can try is to use a previous version of the node cli in your build, as the below example : 

npm install -g @angular/cli@13.3.7

You can use that command in your pipeline to install the node cli version 13.3.7, which should be working fine.

Hope that helps! Let me know in case you have any questions.

Thank you, @mohan_b .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events