This is a TFS Build task that will post issues detected by a SonarQube incremental analysis to a Pull Request. It has been tested with Maven and Gradle.
Dev:
- install node
- install typescript globally:
npm install -g typescript npm installto install all the dependenciesnpm run infofor a description of all the scripts- building and debugging tests work from inside VSCode - build (ctrl+shift+b) will transpile the ts and you can F5 into a mocha test
npm run testwill build and run all the tests- to try out the VSTS Git API endpoint, have a look at the PrcaService.DriverTest
Packaging:
- make sure to have installed all dependencies and to have built the project (
npm install -g typescript,npm installandnpm run testwill do it) npm run packagebundles all the files that form this build task- the task is in bin/package
- to test the task on your own account, install it using the tfx-cli utility https://www.npmjs.com/package/tfx-cli