Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
using SonarScanner 4.7.0.2747
Java 11.0.15 Debian (64-bit)
Linux 3.10.0-1160.71.1.el7.x86_64 amd64
Using Azure DevOps tasks: SonarQubeAnalyze 4.31.0 and SonarQubePublish 4.9.3
My Azure DevOps pipeline uses:
- task: SonarQubePublish@4
inputs:
pollingTimeoutSec: ‘300’
which is resulting in an error saying:
##[error]EACCES: permission denied, mkdir ‘/__w/44/a’
Debug log:
##[debug]SYSTEMVSSCONNECTION exists true
##[debug]Acquiring a build API object.
##[debug]Creating a new build property with global Quality Gate Status
##[debug]build.artifactStagingDirectory=/__w/44/a
##[debug][SQ] Publish task error: EACCES: permission denied, mkdir ‘/__w/44/a’
##[debug]task result: Failed
This error appeared after creating a new feature branch and then even running from the main branch would result with this issue. This is somewhat of an intermittent error, I was able to get it to work with the same pipeline code but have it fail on the subsequent run with no changes. Now it has been mostly failing on the runs, hoping for any leads on what could be going wrong.
Additionally, I have other pipelines running on the same build agent just fine, running the same SonarQubePublish@4 task.
Thank you!