Git Product home page Git Product logo

concourse-sonarqube-notifier's Introduction

SonarQube Notification Resource

Actions Status Actions Status

Gets Sonarqube results.

Installing

Shortcut: Pipeline example

Use this resource by adding the following to the resource_types section of a pipeline config:

---
resource_types:
- name: sonarqube-notifier
  type: docker-image
  source:
    repository: lgohr/sonarqube
    tag: latest

Source configuration

Configure as follows:

---
resources:
- name: my-sonarqube
  type: sonarqube-notifier
  source:
    target: https://my.sonar.server
    sonartoken: ((my-secret-token))
    component: my:component
    metrics: ncloc,complexity,violations,coverage

in: Get the latest result

Get the latest result; write it to the local working directory (e.g. /tmp/build/get) with the filename result.json.

Example response (metrics: nloc,complexity,violations,coverage)

{
  "component": {
    "id": "AWH_6osdce3G0HojaCW1",
    "key": "my:component",
    "name": "my-component",
    "qualifier": "TRK",
    "measures": [
      {
        "metric": "ncloc",
        "value": "824",
        "periods": [
          {
            "index": 1,
            "value": "299"
          }
        ]
      },
      {
        "metric": "complexity",
        "value": "90",
        "periods": [
          {
            "index": 1,
            "value": "27"
          }
        ]
      },
      {
        "metric": "violations",
        "value": "5",
        "periods": [
          {
            "index": 1,
            "value": "-6"
          }
        ]
      },
      {
        "metric": "coverage",
        "value": "91.4",
        "periods": [
          {
            "index": 1,
            "value": "40.7"
          }
        ]
      }
    ]
  },
  "periods": [
    {
      "index": 1,
      "mode": "previous_version",
      "date": "2018-03-07T16:58:31+0100"
    }
  ]
}

out: Nothing

concourse-sonarqube-notifier's People

Contributors

dependabot[bot] avatar elgohr avatar github-actions[bot] avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fossabot

concourse-sonarqube-notifier's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

checks failing with runtime error

Hi

I've just configured my pipeline with this resource and initial check have been failing with below runtime error. My concourse version is 7.4.0. Could you please provide some insight on this error

panic: runtime error: invalid memory address or nil pointer dereference
23:13:35
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x6561db]
23:13:35

23:13:35
goroutine 1 [running]:
23:13:35
main.getVersions(0xc0000b60f0, 0x24, 0xc0000b60c0, 0x28, 0xc0000bc090, 0x18, 0x0, 0x0, 0x0, 0x0, ...)
23:13:35
	/concourse-sonarqube-notifier/assets/check/main/check.go:87 +0x2db
23:13:35
main.run(0x723e60, 0xc0000be000, 0x723e80, 0xc0000be008, 0x0, 0x0)
23:13:35
	/concourse-sonarqube-notifier/assets/check/main/check.go:51 +0x18f
23:13:35
main.main()
23:13:35
	/concourse-sonarqube-notifier/assets/check/main/check.go:32 +0x55
23:13:35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.