Hi,
When I use the deployment tag, in my yml file.
The npm install not works.
- step:
name: Development Build and Deployment
deployment: staging
caches:
- node
#trigger: manual
script:
- npm install
- npm install -g @angular/cli@7.3.8
- ng build
- scp -r dist/ $SITES_USER@$SITES_IP:$PATH
The code above, not works, when the pipeline run, throws the error: bash: npm: command not found.
When I take off the deployment, like that:
- step:
name: Development Build and Deployment
caches:
- node
#trigger: manual
script:
- npm install
- npm install -g @angular/cli@7.3.8
- ng build
- scp -r dist/ $SITES_USER@$SITES_IP:$PATH
The code above, works.
How to make the pipeline with deployment works?
I've tried to reproduce this scenario but I didn't get any error when the tag is there.
I'm afraid there is an extra detail we are missing that could be causing this behavior.
Do you have any special docker image in your pipeline configuration?
Hi @Daniel Santos,
The problem has solved.
In pipeline exists a environment variable called PATH, and that variable, is of the linux system, because of that, the problem occurs.
Thanks for reply!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for sharing.
I'm glad to know you found out what was the issue.
Have a good one!
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.