The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Basically that, it appears you can't run npm --workspace commands in the pipeline:
+ npm run lint
> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build
> npm run lint --workspaces
> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build
> npm run lint --workspaces
> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build
> npm run lint --workspaces
> frontend-next@0.1.0 lint /opt/atlassian/pipelines/agent/build
> npm run lint --workspaces
Continues until it crashes, and then you get a extremely large number of errors.
The first of which is:
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn sh
npm ERR! file sh
npm ERR! path sh
npm ERR! errno EAGAIN
npm ERR! frontend-next@0.1.0 lint: `npm run lint --workspaces`
npm ERR! spawn sh EAGAIN
npm ERR!
npm ERR! Failed at the frontend-next@0.1.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
and then this repeated about 100 times:
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-19T23_27_12_631Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend-next@0.1.0 lint: `npm run lint --workspaces`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend-next@0.1.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The pipeline is only on step 2:
1) npm install
2) npm run lint
And lint script is 'npm run lint --workspaces', I have three apps. Pipeline uses image:node-12.22.5
nvm - the official node 12 images install an old npm - 6.14.14, and npm workspaces are in npm 7.
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 eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.