Hi,
I am getting this error in bitbucket piepline when I want to sonarscan using sonarcloud
There is an error in your bitbucket-pipelines.yml at [pipelines > default > 0 > step > script > 0 > variables]. To be precise: This section should be a map (it is currently defined as a list).
My Pipeline script is as below
image: microsoft/dotnet:sdk
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
pipelines:
default:
- step:
script: # Modify the comma`nds below to build your repository.
- pipe: sonarsource/sonarcloud-quality-gate:0.1.2
variables:
- SONAR_TOKEN:'${SONAR_TOKEN}'
Hello @Ashish Agrawal,
The variables element should be a map, so nested values (just one in your case) should not be prepended by - sign, check out an example here.
Hope this helps.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.