Concourse sonar integration


#1

I am integration sonar runner with concourse pipeline. I am able to see analysis report but job fails with out any error.

Job config:

jobs:
- name: job-unit-test
  public: true
  serial: true
  plan:
  - get: service-repo-trigger
    trigger: true
  - get: service-repo
    trigger: false
  - get: ci-resources
  - task: unittests
    params:
      SERVICE_NAME: ((service-name))
    file: ci-resources/ci-tasks/sample_task_go_unit_test.yml
  - put: code-analysis
    params:
      project_path: sonar-path
      additional_properties:
        sonar.go.coverage.reportPaths: coverage.out

Out put from watch:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 14.224s
INFO: Final Memory: 13M/313M
INFO: ------------------------------------------------------------------------
Reading SonarQube scanner report (./.scannerwork/report-task.txt)…
failed

Help is much appreciated. Let me know for missing details.


#2

Hello, please edit your post, it is not very readable at the moment.

Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ````` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.


#3

Hi @thejaswi I’m interested on your issue.

I’m integrating sonar client too and am using my own container that performs the analysis as a task and pushes the report to the sonarqube main server.
Would that be an approach that you would consider?.