Skip to end of metadata
Go to start of metadata

Plugin Information

View Mashup Portlets on the plugin site for more information.

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

Additional portlets: 'Generic JS Portlet' flexibly displays any content from another source. 'Recent Changes' and 'Test Results' show useful job information that would otherwise only available by drilling down into the job. The 'SonarQube Portlet' shows important issues from Sonar directly in Jenkins.

Overview 

The following portlets can be used in dashboards (requires plugin Dashboard View):

  • Generic JS Portlet: Allows to run arbitrary JS to create content in the portlet content area by loading html snippets or json data from arbitrary sources on the internet/intranet.

    Important

    Using this portlet will allow anyone that can edit a dashboard view to add arbitrary JS that is also visible to/executed by other users - only install this plugin if you trust everybody that you give permissions to edit views!

  • Recent Changes Portlet: Shows the recent SCM changes for a configured job
  • Test Results Portlet: Shows the test results for a configured job
  • SonarQube Portlet: Shows issues from SonarQube directly in Jenkins (using the REST API)

Generic JS Portlet

Allows to run arbitrary JS to create content in the portlet content area by loading html snippets or json data from arbitrary sources on the internet/intranet. The function ajaxViaJenkins() allows running ajax requests avoiding cross domain issues by routing them through jenkins. Any content type that can be handled by javascript (html, json etc.) can be used.

The following example is not really useful in a real world scenario, but shows how easy it is to pull in content via javascript. 

Configuration:


Portlet View:

Recent Changes Portlet

Shows the recent SCM changes for a configured job. If the optional JIRA Base URL is configured, JIRA Issue IDs are automatically made clickable. 

Configuration:


Portlet View:

Test Results Portlet

Shows the test results for a configured job.

Changelog

Version 1.1.0 (May 9 2019)

  • Fix for Generic JS Version (JENKINS-57309) to work with latest security model of Jenkins
  • Fixed SonarQube Portlet to work correctly with latest SonarQube LTS version 6.7.x (JENKINS-57354JENKINS-57308), also fixed a security issue (warning) Upgrade to this version is recommended! (token has to be re-entered)

Version 1.0.9 (April 5 2018)

  • Using SonarQube Token instead of user/pw now.

Version 1.0.8 (April 20 2017)

  • Add timeouts to HttpURLConnection usage in ServerSideHttpCall as used by GenericJsPortlet (JENKINS-43711)

Version 1.0.7 (Jan 9 2017)

Version 1.0.6 (Nov 05 2015)

  • Recent Changes Portlet now allows to configure the maximal number of changes to be shown (thanks to tabeyti for this pull request).

Version 1.0.5 (Jan 24 2015)

  • SonarQube Portlet allows to show alerts for given project(s) now
  • Fixed Generic JS Portlet's js method ajaxViaJenkins to run without credentials for current Jenkins versions (tested with 1.580.1). The JS method ajaxViaJenkins() now works again with either two (url and callback) or four (url, user, pw, callback) parameters. See JENKINS-26556

Version 1.0.3 (Aug 25 2014)

  • Minor layout fix in SonarQube portlet

Version 1.0.2 (Aug 12 2014)

  • SonarQube portlet: Added config option for maximum users shown in asignees ranking and fixed error handling (if ajaxViaJenkins fails)

Version 1.0.1 (Jul 31 2014)

  • Fixed search URL (when clicking on user in busiest assignees) for SonarQube 4.1.2

Version 1.0.0 (Jul 24 2014)

  • Added code mirror editing for javascript in view configuration (Generic JS Portlet)
  • Made SonarQube portlet compatible with latest SonarQube version (tested with 4.1.2 and 4.3.2). Removed old Sonar Portlets for Sonar < 3.6

Version 0.9.2 (Jan 19 2014)

  • Fixed Link in Recent Changes Portlet (JENKINS-21429)
  • Added functionality from deprecated Sonar Reviews Portlet to SonarQube Issues Portlet (JENKINS-21430)

Version 0.9.1 (Dec 23 2013)

  • Fixed image URLs

Version 0.9 (Dec 19 2013)

1 Comment

  1. Unknown User (santy22)

    Hi,

    I am trying to create a dashboard that will show the sonar dashboard in the jenkins itself. But when i am trying to add sonar portlet to jenkins it is showing me "Loading....".

    Please help me out.

    Jenkins Version : Jenkins ver. 1.642.4

    Sonar Version : Version 5.5

    Mashup Portlet : latest (1.0.6)

    Regards,

    Santosh Kumar