Table of Contents | ||||
---|---|---|---|---|
|
Integrating the SeaLights Maven plugin into your pom.xml
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Configuration file
JSON configuration parameters reference
Create a JSON configuration file with the following parameters in order to provide the necessary configuration fields to the SeaLights Maven plugin:
...
Note |
---|
|
Info |
---|
See 'Java Command Reference - Installing test listener as Java Agent' for more parameter values and information |
...
Code Block | ||
---|---|---|
| ||
{ "tokenFile": "sltoken.txt", "createBuildSessionId": true, "appName": "${JOB_NAME}", "branchName": "master", "buildName": "${BUILD_NUMBER}", "packagesIncluded": "*com.example.*", "packagesExcluded": "", "filesIncluded": "*.class", "filesExcluded": "*test-classes*", "recursive": true, "includeResources": true, "testStage": "Unit Tests", "labId": null, "executionType": "full", "logEnabled": false, "logDestination": "console", "logLevel": "off", "logFolder": "/tmp", "sealightsJvmParams": {}, "enabled": true } |
Frequently used parameters
Configuring SCM
SeaLights by default provides all links to the SCM for Github.
...
Info |
---|
For more details and recommendations on how to set those 3 parameters, please refer to our dedicated page https://sealights.atlassian.net/l/c/300TDd3Y . |
Surefire and Failsafe argLine update
If you have configured the argLine for surefire and/or failsafe, the integration will include adding @{sealightsArgLine}
to them.
This can be updated/overridden by adding and updating the following parameters to the JSON file:
...
Code Block |
---|
"surefireArgLine": "-Xms1280m -Xmx1280m @{sealightsArgLine}" "failsafeArgLine": "-Xmx8192m @{sealightsArgLine} -Dsl.testStage=\"Integration Tests\"" |
Tagging
You can add tags to be viewed in the cockpit for the agents started by this maven job by passing them through the sl.tags
property in the sealightsJvmParams
field
Code Block |
---|
"sealightsJvmParams": { "sl.tags": "mytag", } |
Pre-downloading the agents
The Maven plugin downloads the recommended agent at the beginning of the run. If you want to pre-download them and provide them to the plugin, you can do so with the flags scannerJar & listenerJar.
...