List of Images, Check on Commit

Hello All

I had a few questions.

Is there a list or directory of all images that can be used? I am looking for a swift image to build the pipe.

My second question was what do I need to add to the pipe to get it to scan on commit?

Thank you


Could you give a bit more context ? What CI are you using ? What did you try already ?

No CI tool atm. We are just pulling from bitbucket.

Here is what I am using for .net applications and it seems to be working

##image: microsoft/dotnet:sdk
##image: microsoft/dotnet:3.0-sdk
image: microsoft/dotnet:2.2-sdk

depth: full # SonarCloud scanner needs the full history to assign issues properly

#- step:
# name: Running SonarCloud Analysis
# script:
# - pipe: sonarsource/sonarcloud-scan:1.0.1

   - step:
        name: CSharp and .NET SonarCloud Analysis
        size: 2x
         - docker
         - apt-get update
         - apt-get install --yes --force-yes openjdk-8-jre
         - curl -sL | bash - #added by SF 
         - apt-get install --yes --force-yes nodejs #added by SF to install Node.JS
         - npm install
         - export PATH="$PATH:/root/.dotnet/tools"
         - dotnet tool install --global dotnet-sonarscanner
         ##- cd \src
         - dotnet sonarscanner begin /k:"HIDDEN" /d:"sonar.login=${SONAR_TOKEN}" /o:"HIDDEN" /v:"${BITBUCKET_COMMIT}" /d:""
         - dotnet build County.sln
         - dotnet sonarscanner end /d:"sonar.login=${SONAR_TOKEN}"

memory: 6144

Ok so I see you use Bitbucket Pipeline for your other projects.

Did you try following the Bitbucket Pipeline tutorial in SonarCloud for your swift project ? You can also refer to this documentation.

Are you able to give me a link to the tutorial? I cant seem to find it.
Thank you

Just following up for the link. thanks

Yeah I can’t really give you a link, the tutorial is displayed to you in SonarCloud just after you import your project from Bitbucket cloud. Or if you have not done any analysis yet on your project, just going to the project page should show you something similar to this:

If an analysis was done already you can find the tutorial in the administration of your project under “Analysis method”.

1 Like

OK and just so I have this correct, sonar does not do flutter, correct?

Indeed we don’t analyze Dart/Flutter code.

1 Like