Hi I m trying to get th…

less than 1 minute read

Hi, I’m trying to get the npm run affected:* commands running in a Jenkins pipeline. But Jenkins seems to use sparse checkouts. Any idea how I can fix this?


Have you figured this out?

try adding the base to all the affected cmds for me it is –base=remotes/origin/master

Take a look at this repo https://github.com/nrwl/nx-jenkins-build

We have added --base=remotes/origin/master like you suggested.

Thanks for the link to the jenkins repo.

Also check out the PR’s if you have a more complicated branching model.