Tuesday, March 20, 2018

How to setup SonarQube Plug-ins in Teamcity?

Please follow the below steps for configuring Sonarqube plug-ins with Teamcity server.
Open TeamCity Git bash/iterm window

1. cd  /opt/JetBrains/TeamCity/.BuildServer/plugins/ 

download the plug-in to above location by executing below command where you enter userid like below marked red.
2. sudo wget --user=teamcitydevops --ask-password https://teamcity.jetbrains.com/repository/download/TeamCityPluginsByJetBrains_TeamCitySonarQubePlugin_Build20171x/1802362:id/sonar-plugin.zip

3. Password will be provided by Coach.
make sure sonar-plugin.zip is downloaded in /opt/JetBrains/TeamCity/.BuildServer/plugins/

Restart Team city
4. sudo /etc/init.d/teamcity stop
5. sudo /etc/init.d/teamcity start


Now click on administration, Click on Plug-ins list. You should see Sonarqube plug-ins appearing.

 

2 comments:

  1. Step 5 web address no longer exists. It has been updated to https://teamcity.jetbrains.com/repository/download/TeamCityPluginsByJetBrains_TeamCitySonarQubePlugin_Build20171x/1597421:id/sonar-plugin.zip

    ReplyDelete
  2. step 2 web address may fail, use the below url:
    https://teamcity.jetbrains.com/repository/download/TeamCityPluginsByJetBrains_TeamCitySonarQubePlugin_Build20171x/1802362:id/sonar-plugin.zip

    ReplyDelete