This is my yml file:
- npm install -g @angular/cli
- npm install
- ng build
- ls dist/customer-portal
- dist/** # target folder in bitbucket container
name: Deploy on server
- pipe: atlassian/scp-deploy:1.2.1
name : Excute script to run on server
- pipe: atlassian/ssh-run:0.2.8
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
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 cli
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 .
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
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