-
Notifications
You must be signed in to change notification settings - Fork 7
Quick User Guide
alpesh-shah edited this page May 21, 2014
·
3 revisions
To use this tool, follow below steps.
- Run maven install on the project, it will create binaries zip under target/assembly folder. Alternatively you can use already prepared sonar-data-migrator-binaries.zip
- Extract zip on machine from where you have access to both sonar server DB.
- Do sonar analysis with maven sonar:sonar command on both source and target sonar with same code.
- Configure source and target db details in database.properties file (target DB should be mysql/postgres,oracle as target DB won't work without code change )
- Run init.sql on target sonar db, it will create temporary tables to store migrated data details
- Set proper java path in script.bat file (you can use script.sh for executing on Linux) .
Usage
- run the bat/sh script passing users as argument for migration of users
- run the bat/sh script passing data as first argument and project key as per "Key" value in sonar report as second argument. If key is not passed, it will work for all projects in db.
Note that script is idempotent meaning that running it multiple times doesn't create any issue as data already migrated won't migrate again. This script will migrate below things
- Users (default sonar-users role is assigned to all migrated users)
- Action plans associated to the project
- All changes to issue like assignee,severity,status,action plan and resolution
- All reviews/comments added to issue
- All false positive data