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