Advertisement
powerofsoul

Untitled

May 10th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. This scan process uses 3 plugins :
  2. -first plugin triggers the scan each time a pull request is created (Pull Request Notifier for Atlassian Stash)
  3. -second plugin creates the prerequisite for SonarQube so it can do the scan (analyze-bitbucket-pull-requests.ps1)
  4. -third plugin report the issues on BitBucket (sonar-stash)
  5.  
  6. The plugin that triggers the scan is Pull Request Notifier for Atlassian Stash . More informations and documentation about this plugin on
  7. https://github.com/tomasbjerre/pull-request-notifier-for-stash
  8.  
  9. Pull Request Notifier for Atlassian Stash will trigger a powershell script named analyze-bitbucket-pull-requests.ps1 which can receive as parameters:
  10. -bitBucketUrl = the url to BitBucket
  11. -userName and password are the credentials for BitBucket and by default are environmental variables in windows (BITBUCKET_USER and BITBUCKET_PASSWORD)
  12. -projectKey ,pullRequestBranch ,pullRequestId ,repositoryName are the informations about the pull request that will be scanned
  13. -maximumAllowedIssues = the maximum number of allowed issues . If the number of issues is exceeded no comments will be added to the pull request.The default value is 100
  14. This script downloads the difference files from the pull-requests and create all the files that SonarQube needs in order for the scan to be done .
  15.  
  16. The plugin that report the informations to BitBucket is sonar-stash . More informations and documentation about this plugin can be found on https://github.com/AmadeusITGroup/sonar-stash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement