SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2940

New "sonar.scm.perforce.clientspec.name" parameter for Perforce

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SCM-ACTIVITY-1.6
    • Component/s: SCM Activity
    • Labels:
      None
    • Number of attachments :
      0

      Description

      To map the "maven.scm.perforce.clientspec.name" parameter.

        Activity

        Hide
        Fabrice Bellingard added a comment -

        Can't test it. Let's wait for the community's feedback (Patroklos IIRC).

        Show
        Fabrice Bellingard added a comment - Can't test it. Let's wait for the community's feedback (Patroklos IIRC).
        Hide
        Wolfgang Buckel added a comment -

        I tried it with today's snapshot build of the plugin (sonar-scm-activity-plugin-1.6-SNAPSHOT.jar, Sep 16, 2013 6:10:49 AM) but still no blame information. The command line parameter doesn't seem to take (see error/warning below). The maven scm module still constructs the client/workspace name on its own and doesn't use the name provided via command line argument.

        09:09:45.390 WARN - Fail to retrieve SCM info of: D:\Perforce\ActraDepot\Release\TACTICS3.0.x\Projects.NET\UI\Config\IUILoadable.cs. Reason: The perforce command failed.
        IUILoadable.cs - must create client 'itsautomatedbuild-siemens2010-vpc-MavenSCM-D:\Perforce\ActraDepot\Release\TACTICS3.0.x\Projects.NET\UI\Config' to access local files.

        I use server 3.6.1 and runner 2.3. My command line was:
        > sonar-runner -Dmaven.scm.perforce.clientspec.name=AutobuildGeneral

        Show
        Wolfgang Buckel added a comment - I tried it with today's snapshot build of the plugin (sonar-scm-activity-plugin-1.6-SNAPSHOT.jar, Sep 16, 2013 6:10:49 AM) but still no blame information. The command line parameter doesn't seem to take (see error/warning below). The maven scm module still constructs the client/workspace name on its own and doesn't use the name provided via command line argument. 09:09:45.390 WARN - Fail to retrieve SCM info of: D:\Perforce\ActraDepot\Release\TACTICS3.0.x\Projects.NET\UI\Config\IUILoadable.cs. Reason: The perforce command failed. IUILoadable.cs - must create client 'itsautomatedbuild-siemens2010-vpc-MavenSCM-D:\Perforce\ActraDepot\Release\TACTICS3.0.x\Projects.NET\UI\Config' to access local files. I use server 3.6.1 and runner 2.3. My command line was: > sonar-runner -Dmaven.scm.perforce.clientspec.name=AutobuildGeneral
        Hide
        Julien HENRY added a comment -

        Try:
        > sonar-runner -Dsonar.scm.perforce.clientspec.name=AutobuildGeneral

        Show
        Julien HENRY added a comment - Try: > sonar-runner -Dsonar.scm.perforce.clientspec.name=AutobuildGeneral
        Hide
        Wolfgang Buckel added a comment -

        Ooops. Sorry, I still had set the parameter as described in your documentation (http://docs.codehaus.org/display/SONAR/SCM+Activity+Plugin). So you might want to update the docs to specify the correct parameter.

        It works for me now. Many thanks for this feature.

        Show
        Wolfgang Buckel added a comment - Ooops. Sorry, I still had set the parameter as described in your documentation ( http://docs.codehaus.org/display/SONAR/SCM+Activity+Plugin ). So you might want to update the docs to specify the correct parameter. It works for me now. Many thanks for this feature.
        Hide
        Julien HENRY added a comment -

        No IT

        Show
        Julien HENRY added a comment - No IT

          People

          • Assignee:
            Julien HENRY
            Reporter:
            David RACODON
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: