Following the example for Bitbucket Pipelines integration with Sonar Scanner on a NodeJS project, the instructed cache usage does not work. This has the effect of making scan times a LOT longer, on NodeJS projects.
This can even be seen in the sample repo pipeline
I can only assume that this is because it runs in pipes, whereas (for example) the Maven example runs in the same pipeline / step as the command which calls it, so the cache is available.
I’m not sure how / if Bitbucket Pipelines allow access to the output files from a Pipe
The only documentation I can find related to sharing files from a pipe is here:
It says you need to adjust permissions, which looking at the source for the scanner, I don’t think it does