...
Create a JSON configuration file with the following parameters to provide the necessary configuration fields to the SeaLights Gradle plugin:
token or tokenFile - set with a token or a file containing the token obtained from the SeaLights dashboard
If you create a Build Session ID externally, provide the following fields:
buildSessionId or buildSessionIdFile - Set with a build session id or a file containing the build session id created by the config step
createBuildSessionId - Set to false
If you want to create a Build Session ID using the SeaLights Gradle plugin, provide the following fields:
createBuildSessionId - Set to true
appName - Name of the application as you want to see it on the SeaLights dashboard
branchName - Name of the branch as you want to see it on the SeaLights dashboard
buildName - Name of the build as you want to see it on the SeaLights dashboard
packagesIncluded - Comma-separated list of packages to include in the scan operation. Note: This is defining a subset, so it must include the star to include all sub-packages/classes
executionType - Provide which executions need to be handled by the Gradle plugin
full - Execute both the build scanner and the test listener
scanonly - Execute only the build scanner
testTasksAndStages - (Optional) Mapping of test tasks’ names to test stage names as they will be displayed on the SeaLights dashboard. It should be of the format {"testTask1":"testStage1", "testTask2":"testStage2"}
proxy - (Optional) Address of proxy to run connection through
Info |
---|
For additional parameters values and information, see 'Java Command Reference - Installing test listener as Java Agent' for more parameter values and information |
...
Code Block |
---|
"gradleProjectConfig": {"repoConfig": "maven{\nurl \"https://artifactory.company.com/artifactory/remote-repos\"\ncredentials {\nusername = System.env.REPO_USER\"USERNAME\"\npassword = System.env.REPO_PASSWORD\"PASSWORD\"\n}\n}"} |
Sample shell script
...