Working With Command Line and Continuous Integration

Creating projects via command line

Instead of creating a project from the Squore web interface, you can create a project directly from the command line using Squore Agent.

Squore Agent is a client for Squore that enables you to create and analyse projects locally and send the results to Squore Server. Alternatively, you can use Squore Agent to instruct Squore Server to carry out the analysis.

If you have installed Squore Agent on your computer, you can call it using Java, passing the parameters you would have passed in the web interface to create projects. The following is an example of the command line you can use to create a project using Squore Agent:

java -jar squore-agent.jar -u demo http://localhost:8180 -- --commands="DELEGATE_CREATION" --name="Earth" --versionPattern="V#N1#" --wizardId="ANALYTICS" --dp="type=SQuORE" --repository="path=<SQUORE_HOME>/samples/c/Earth/V6"

You can find more information about installing and using Squore Agent in the Command Line manual.

Connecting Squore with a continuous integration environment

If you use a Continuous Integration tool like Jenkins or CruiseControl, you can add Squore to your build process and analyse projects every time your code is compiled. This requires the installation of Squore Agent on the continuous integration server, and is therefore described in greater details in the Command Line Guide.