[ 
https://issues.apache.org/jira/browse/CASSANDRA-18785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacek Lewandowski updated CASSANDRA-18785:
------------------------------------------
    Description: 
The new task is called {{sonar}}.

When you run {{ant sonar}} it will:
- if env variable {{SONAR_SERVER_URL}} it will use that server for the analysis 
(it requires also env {{SONAR_CASSANDRA_TOKEN}} in this case)
- else, it checks if there is a Sonar server running at http://127.0.0.1:9000 
if so, it will use it, assuming that the {{cassandra}} project exists and is 
configured, it also assumes credentials {{admin:password}}; otherwise it will 
pull Docker image of SonarQube, run it, and preconfigure automatically using 
WEB API. 

In other words, unless you have {{SONAR_SERVER_URL}} env variable defined, 
{{ant sonar}} will automatically run and configure Sonar server instance on 
your local machine, do the analysis and leave the instance running, so that you 
can view the results in the browser, and reuse the server for for the next runs.


> Add optional task to run Sonar analysis
> ---------------------------------------
>
>                 Key: CASSANDRA-18785
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18785
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The new task is called {{sonar}}.
> When you run {{ant sonar}} it will:
> - if env variable {{SONAR_SERVER_URL}} it will use that server for the 
> analysis (it requires also env {{SONAR_CASSANDRA_TOKEN}} in this case)
> - else, it checks if there is a Sonar server running at http://127.0.0.1:9000 
> if so, it will use it, assuming that the {{cassandra}} project exists and is 
> configured, it also assumes credentials {{admin:password}}; otherwise it will 
> pull Docker image of SonarQube, run it, and preconfigure automatically using 
> WEB API. 
> In other words, unless you have {{SONAR_SERVER_URL}} env variable defined, 
> {{ant sonar}} will automatically run and configure Sonar server instance on 
> your local machine, do the analysis and leave the instance running, so that 
> you can view the results in the browser, and reuse the server for for the 
> next runs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to