image: node:latest
definitions:
steps:
- step: &deployWeb
name: deploy web
script: &deployWebScript
- npm install
- npm run ng build -- --configuration=production
pipelines:
custom:
deploy-to-QA:
- step:
<<: *deployWeb
name: Deploy to QA
deployment: test
here is my bitbucket-pipelines.yml for an angular application and I'm getting a build error on npm install with the following error
/opt/atlassian/pipelines/agent/tmp/shellScript16212036659655199428.sh: line 4: npm: not found
Found the issue, was using PATH as one of my environment variables.
It would be awesome if there is a warning when using PATH as a pipeline environment variable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.