Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I am getting this Error for sonarCloud Scan in Bitbuclet cloud pipeline

Ashish Agrawal August 28, 2019

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}'

 

 

 

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events