Skip to content

Sonar4Bitbucket & Sonar4Bamboo are great tools that create a project per branch to pull in Sonarqube data to the Pull Request. However, it doesn't always tidy up older branches successfully. This tool gets all your Sonarqube projects, looks for valid bamboo branches and deletes the projects that don't have one.

License

Notifications You must be signed in to change notification settings

dreamportsoftware/sonarqube-tidy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonarqube Tidy

Sonarqube Tidy is a simple tool that checks for active branches in Bamboo vs ones in Sonarqube. If the Bamboo branch doesn't exist any more then the Sonarqube branch is deleted. This is useful when using Sonar4Bitbucket plugin where it creates a project per branch for Pull Request purposes.

Installation

To install the configuration and setup the application the first time, run:

composer create-project

Running

bin/sqt run

To run in 'non-interactive' mode, you can specify --username=<username> and/or --password=<password> on the command-line although this is not recommended.

Configuration

The configuration file is created at config/config.ini. It needs to contain the URL to your Bamboo and Sonarqube servers along with any branches you should ignore from this process (such as master and develop if you're using gitflow).

We currently assume your Sonarqube and Bamboo instances share a user directory for authentication.

About

Sonar4Bitbucket & Sonar4Bamboo are great tools that create a project per branch to pull in Sonarqube data to the Pull Request. However, it doesn't always tidy up older branches successfully. This tool gets all your Sonarqube projects, looks for valid bamboo branches and deletes the projects that don't have one.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages