Willing to pay for help setting up first scan

Hello

As the title says I am willing to pay to get someone to help setup my first scan.

Send me a pm to discuss

Thank you

1 Like

Hi @asmgi,

While I would be happy to increase my “bookings numbers” here at SonarSource, I’m sure you can get your first scan started by yourself. :slight_smile:

We have a documentation which explains nicely how to set up your first scan in SonarCloud, depending on the Cloud-ALM you use. Can you give a bit more details about what you have in your toolchain, what you are trying to achieve etc ?

Thanks,
Carine

6 Likes

@Carine_Bayon

Thank you for the response. :slight_smile:
I am trying to setup our first scan. The project is in C# and coming from bitbucket

I was able to walk through the setup till the point of making the yml file. I have created it but I am not sure what to replace with? Are you able to advise what should be in that palce?

Thanks
Alex

Hi there.

Can you link to the documentation you’re following?

1 Like

@Colin I was just following along in the application doing setup.

I have a project loaded that says configure analaysis

I have setup the pipe to bitbucket and I am now stuck on the YML file

This line here

  • build-wrapper-linux-x86-64 --out-dir $BW_OUTPUT

What do i change to?

Here is the document I am following
https://sonarcloud.io/documentation/integrations/bitbucketcloud/

Getting Closer but the pipe did not run

Any more advice, thank you

You really haven’t given us much detail to work with! What’s the exact error in your pipeline? What does your .yml file currently look like (what is the content?)

It looks like you’re trying to configure the build wrapper (which only needs to be used when analyzing C/C++ code). Is your code C/C++ code? Your screenshot shows some NPM commands, which would tell me your project is more likely using Javascript. :slight_smile:

1 Like

The program is C#.

At the top of where it says What option best describes your build? should i be selecting the C,C++ … one or the one that says other?

and thank you for the help

image: feeni/node-chrome:latest

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

definitions:
caches:
sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build
steps:

  • step: &build-test-sonarcloud
    name: Build, test and analyze on SonarCloud
    caches:
    - node
    - sonar
    script:
    - npm install --quiet
    - npm run test – --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox
    - pipe: sonarsource/sonarcloud-scan:0.1.5
    variables:
    SONAR_TOKEN: ${SONAR_TOKEN}
    EXTRA_ARGS: ‘-Dsonar.sources=src -Dsonar.tests=src -Dsonar.test.inclusions="/testing/,**/*.spec.ts" -Dsonar.typescript.lcov.reportPaths=coverage/lcov.info’
    pipelines:
    default:
  • step: *build-test-sonarcloud
    pull-requests:
    ‘**’:
    • step: *build-test-sonarcloud

Okay, good news, no build wrapper needed. :slight_smile: But you will need to use the Scanner for MSBuild.

I think on SonarCloud there aren’t currently any in-product tutorials for setting up analysis for C# projects. This is something we’d like to have eventually

In the meantime, I believe there are some community examples.

Where do I find my SONAR_TOKEN and project keys? Thank you

So I got it to run following the above post. However it shows as passed in my dashboard and no code. I have the path set in the config. Any idea what I am doing wrong?

@Colin just wanted to make sure you saw my last message

This is a community forum, others might chime in as well. :slight_smile: You’ll need to provide logs, screenshots, etc for anybody to be able to provide real help. You play as much a role in this as (if not more than) the people you’re asking for help.

I understand. This is just my first go round with this software and I am hitting some roadblocks. I am trying to give as much information as I can but I am not sure what is the most important to provide.

What could i post now that would help?

What SonarCloud shows you ? Dashboard of your project ? Can you send us a screenshot ?
How do you know that “it shows as passed” and what do you mean by “no code” ?