Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete features moved to the SonarQube extension #6060

Merged
merged 8 commits into from
Feb 1, 2018

Conversation

henryju
Copy link
Contributor

@henryju henryju commented Dec 18, 2017

This pull request is the consequence of the last release of the new SonarQube and SonarCloud VSTS extensions. Configuration of the SonarQube analysis for Maven/Gradle as well as the analysis report publishing in VSTS dashboard are now handled by those extensions.

Support of pull request decoration will come later (probably as a SonarQube server side feature).

@msftclas
Copy link

msftclas commented Dec 18, 2017

CLA assistant check
All CLA requirements met.

},
{
"name": "sqGradlePluginVersion",
"aliases": [ "sonarQubeGradlePluginVersion" ],
"type": "string",
"label": "SonarQube Gradle Plugin Version",
"type": "pickList",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PickList seems like a bad idea for version which might change going forward. You can have a radio button for "Use plugin applied in your build.gradle" or "Specify version number" and default the the specific version number to 2.6.1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

"Major": 1,
"Minor": 128,
"Major": 2,
"Minor": 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update minor version to "130"

"Major": 1,
"Minor": 128,
"Major": 2,
"Minor": 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update minor version to 130

"required": true,
"defaultValue": "false",
"groupName": "CodeAnalysis",
"helpMarkDown": "Run a [SonarQube analysis](https://go.microsoft.com/fwlink/?LinkID=708598) after executing the current goals. 'install' or 'package' goals should be executed first."
"helpMarkDown": "Run a [SonarQube or SonarCloud analysis](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) after executing the current tasks. You have to add the `Prepare Analysis Configuration` task of the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) or [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) extensions in your build definition before this Gradle task."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidstaheli : Any feedback/suggestions on this help text?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please change this as follows to explain how the behavior changed from version 1 of the Gradle task?

This option has changed from version 1 of the **Gradle** task to use the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) and [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) marketplace extensions.  Enable this option to run [SonarQube or SonarCloud analysis](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) after executing tasks in the **Tasks** field. You must also add a **Prepare Analysis Configuration** task from one of the extensions to the build definition before this Gradle task.

"required": true,
"defaultValue": "false",
"groupName": "CodeAnalysis",
"helpMarkDown": "Run a [SonarQube analysis](https://go.microsoft.com/fwlink/?LinkID=708598) after executing the current goals. 'install' or 'package' goals should be executed first."
"helpMarkDown": "Run a [SonarQube or SonarCloud analysis](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) after executing the current goals. `install` or `package` goals should be executed first. You have to add the `Prepare Analysis Configuration` task of the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) or [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) extensions in your build definition before this Maven task."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please change this as follows to explain how the behavior changed from version 1 of the Maven task?

This option has changed from version 1 of the **Maven** task to use the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) and [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) marketplace extensions.  Enable this option to run [SonarQube or SonarCloud analysis](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) after executing goals in the **Goals** field. The **install** or **package** goal should run first. You must also add a **Prepare Analysis Configuration** task from one of the extensions to the build definition before this Maven task.

"required": true,
"defaultValue": "false",
"groupName": "CodeAnalysis",
"helpMarkDown": "Run a [SonarQube analysis](https://go.microsoft.com/fwlink/?LinkID=708598) after executing the current goals. 'install' or 'package' goals should be executed first."
"helpMarkDown": "Run a [SonarQube or SonarCloud analysis](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) after executing the current tasks. You have to add the `Prepare Analysis Configuration` task of the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) or [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) extensions in your build definition before this Gradle task."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please change this as follows to explain how the behavior changed from version 1 of the Gradle task?

This option has changed from version 1 of the **Gradle** task to use the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) and [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) marketplace extensions.  Enable this option to run [SonarQube or SonarCloud analysis](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html) after executing tasks in the **Tasks** field. You must also add a **Prepare Analysis Configuration** task from one of the extensions to the build definition before this Gradle task.

@madhurig madhurig merged commit 5ed1905 into microsoft:master Feb 1, 2018
madhurig pushed a commit that referenced this pull request Feb 5, 2018
* Delete features moved to the SonarQube extension

* Use a radio to specify Gradle scanner version

* Use a radio to select Maven Scanner version + clean Gradle tests

* Remove option to specify Maven Scanner version

* Change minor task version to 130

* Improve documentation

* Commit files generated during the build

* Apply David's feedback
madhurig pushed a commit that referenced this pull request Feb 5, 2018
* Delete features moved to the SonarQube extension (#6060)

* Delete features moved to the SonarQube extension

* Use a radio to specify Gradle scanner version

* Use a radio to select Maven Scanner version + clean Gradle tests

* Remove option to specify Maven Scanner version

* Change minor task version to 130

* Improve documentation

* Commit files generated during the build

* Apply David's feedback

* Fix legacy Maven tests to remove legacy SonarQube integration tests (#6343)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants