GithubHelp home page GithubHelp logo

sonar-hipchat-plugin's Introduction

sonar-hipchat-plugin

A sonar plugin to send notifications to a HipChat room.

Howto

To build the plugin call mvn clean package (or download the current release). The artifact must be copied to the SONAR_HOME/extensions/plugins folder and sonarqube must be restarted.

Tested for sonarqube 5.2 and 5.3

The plugin requires Java 1.8

configuration

The following properties can be configured in the sonarqube build

sonar.hipchat.disabled # true per default - disables the plugin completely
sonar.hipchat.room # HipChat room where to broadcast the message
sonar.hipchat.token # HipChat token for authentication
sonar.hipchat.message # a message that is send to the HipChat room before the actual auto-generated message is sent

Currently a message in the following format is sent

%s has been analysed at %s.%nStatus: %d new issues | %d resolved issues | %d total issues

With the first being the project name, the second the date of analyis.

It is considered to offer a more flexible messaging though.

sonar-hipchat-plugin's People

Contributors

bend-up avatar dbac2002 avatar markolree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sonar-hipchat-plugin's Issues

Compatibility with SonarQube 5.5

It looks like the plugin isn't compatible with SonarQube 5.5.

We have a local buildserver with SonarQube 5.5 running at Java 1.8.0_91-b14 and me use Jenkins to proof our Repositories for changes and build our projects. After that it demands SonarQube to analyse the projectfiles for issues. All working well and the issues and code are updated just fine at the SonarQube dashboards. Also the plugin post-analyse-hook is called and the notification is send to HipChat. All though this notification keeps saying, for every project and analysis: 0 new issues | 0 resolved issues | 0 total issues. Even though I know there are issues resolved or added and the total issues for most of our projects aren't 0.

Assign HipChat Server

How do i assign the hipchat server to send the message to?

We have our own hipchat server and need the notifications to go to it rather than www.hipchat.com

Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar failed:

Getting errors like this:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project sonar-hipchat-plugin: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar: java.lang.NoSuchMethodError: org.sonar.api.resources.Project.getAnalysisDate()Ljava/util/Date;

[ERROR] Fail to execute PMD. Following file is ignored: C:\Users\ssankaranarasimhulu\amadeus\sonar-hipchat-plugin\src\main\java\com\sonar\hipchat\plugin\SonarHipChatMessageBuilder.java
net.sourceforge.pmd.PMDException: Error while processing C:\Users\ssankaranarasimhulu\amadeus\sonar-hipchat-plugin\src\main\java\com\sonar\hipchat\plugin\SonarHipChatMessageBuilder.java
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:81)
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:43)
at org.sonar.plugins.pmd.PmdTemplate.process(PmdTemplate.java:82)

Error with org.sonar.api.resources.Project.getAnalysisDate

I'm getting this error when trying to run version 0.2 with SonarQube Version 6.3.1 (build 21392)

Caused by: java.lang.NoSuchMethodError: org.sonar.api.resources.Project.getAnalysisDate()Ljava/util/Date;
at com.sonar.hipchat.plugin.SonarHipChatMessageBuilder.getStatusMessage(SonarHipChatMessageBuilder.java:59)
at com.sonar.hipchat.plugin.HipChatHttpClient.sendStatusNotification(HipChatHttpClient.java:90)
at com.sonar.hipchat.plugin.SonarHipChatNotifier.executeOn(SonarHipChatNotifier.java:44)

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.