Add support for SonarCloud 78/14478/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 7 Feb 2019 00:32:00 +0000 (19:32 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 8 Feb 2019 18:38:10 +0000 (13:38 -0500)
commit96f71cea2304da35db5c54b324019b027988071d
treefb6e5f63bdf96473a3dbcbd3485719f0bd87312d
parent1a45fc8ab4c2022ce42400b769aaad302baefd8f
Add support for SonarCloud

If SonarCloud is used the old method is automatically disabled so that
Sonar is not run twice.

Example Usage:

- project:
    name: yangtools-sonar
    jobs:
      - gerrit-maven-sonar

    project: 'yangtools'
    project-name: 'yangtools'
    branch: 'master'
    mvn-settings: 'yangtools-settings'
    mvn-opts: '-Xmx1024m'
    sonarcloud: true
    sonarcloud-project-key: KEY
    sonarcloud-project-organization: ORGANIZATION
    sonarcloud-api-token: TOKEN

Issue: RELENG-1721
Change-Id: Ica1cd29bfc9246f2452370dd6ceb8b7e5b8e5329
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/lf-maven-jobs/maven-sonarcloud.yaml [new file with mode: 0644]
docs/jjb/lf-maven-jobs.rst
jjb/lf-maven-jobs.yaml
releasenotes/notes/sonarcloud-support-7f0d1dcacff44ba4.yaml [new file with mode: 0644]
shell/maven-sonar.sh