Clang Scan-Build Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID clang-scanbuild-plugin Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
1.4
Mar 11, 2013
1.480
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Joshua Kennedy (id: jkennedy1980)
Usage Installations 2013-Apr 857
2013-May 898
2013-Jun 868
2013-Jul 912
2013-Aug 944
2013-Sep 930
2013-Oct 999
2013-Nov 958
2013-Dec 952
2014-Jan 996
2014-Feb 990
2014-Mar 997

This plugin allows you to execute Clang scan-build against Mac or iPhone XCode projects.

This plugin allows you configure a build step that will execute the Clang scan-build static analysis tool. The Clang scan-build static analysis tool can be executed against MacOS and iOS XCode projects in order to identify potential memory leaks. In addition to executing scan-build, this plugin will archive the HTML reports and generate trend report detailing the number of bugs over time.
This plugin has been tested in a distributed environment where builds are executed remotely on a Mac slave.

Description

This plugin allows you configure a build step that will execute the Clang scan-build static analysis tool. The Clang static analysis tool can be executed against MacOS and iOS XCode projects in order to identify potential memory leaks. In addition to executing scan-build, this plugin will archive the HTML reports and generate trend report detailing the number of bugs over time.
This plugin has been tested in a distributed environment where builds are executed remotely on a Mac slave.

The following features are provided by this plug-in:

  • Clang tool installations so you can configure locations differently on slaves
  • Clang scan-build build step which allows you to provide XCode settings such as: target, SDK, & configuration
  • Dashboard trend chart which details the bug count over time visible on your job's dashboard page
  • New bugs since the last build are highlighted so they are easy to identify
  • A publisher which will archive the scan-build HTML reports and will optionally fail the build if the bug count exceeds the configured threshold

Please use the mailing lists or issue tracker to ask questions, create feature request, or create bug reports.

Changelog

Release 1.4

  • Added code to implement JENKINS-15902 - xcode build arguments can now be specified. They will be added to the end of the command.

Release 1.3.1

  • Fixed JENKINS-9251 - If you are using a master/slave configuration the clang scan-build tool home can now be left blank on the master and configured on each slave.
  • Fixed another bug which was causing a 500 error when saving the scan-build tool configuration.

Release 1.3

  • Merged patch provided by github user 'tru' which passes Jenkins environment variables through the plugin and makes them available to scan-build.  This enables passing down variables such as BUILD_NUMBER and other Jenkins environment variables.
  • Added the ability to provide arbitrary arguments in the build action configuration which are passed to scan-build.  

Release 1.2

  • Patch provided by Kenji21 to fix a bug when building on a slave.
  • Bug reports are now created on the slave and copied to the master so that they are accessible in your browser

Release 1.1

  • Support for X-Code 4

Release 1.0

  • Initial Release
  • Clang scan-build build step
  • Clang scan-build report publisher
  • Supports XCode projects within workspace subfolders

Installation

  • First install Clang scan-build onto the Jenkins master or slave which will be executing your XCode builds. You can download clang at the following url: http://clang-analyzer.llvm.org/installation.html
  • Setup a Clang scan-build installation in the Jenkins main configuration. (Manage Jenkins). You should give your installation a unique name and provide a path to the scan-build folder unless your master will never execute Clang scan-build jobs.
  • Edit your Job configuration by adding a 'Clang scan-build' Build Step.
  • Choose the installation you wish to use (likely the one you just added).
  • Provide the appropriate XCode build settings (target, SDK, & configuration).
  • If you wish to have trend charts generated, check the checkbox for 'Publish Clang scan-build reports'.
  • To use publisher on projects using make command, specify target directory with scan-build option as "-o clangScanBuildReports".
  • Save your Job and give it a shot. Please provide feedback & questions at the bottom of this page.

Labels

Edit
plugin-report plugin-report Delete
plugin-ios plugin-ios Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment