...
Code Block | ||
---|---|---|
| ||
echo "Downloading Sealights Agents..." wget -nv https://agents.sealights.co/sealights-java/sealights-java-latest.zip unzip -o sealights-java-latest.zip echo "Sealights agent version used is:" `cat sealights-java-version.txt` echo '{ "executionType": "scanonly", "tokenFile": "sltoken.txt", "createBuildSessionId": true, "appName": "${System.getenv(\"JOB_NAME\")}", "branchName": "${System.getenv(\"GIT_BRANCH\")}", "buildName": "SL_Timestamp", "packagesIncluded": "*com.example.*", "packagesExcluded": "", "filesIncluded": "*.class", "filesExcluded": "*test-classes*", "recursive": true, "includeResources": true, "proxy": null, "logEnabled": false, "logDestination": "console", "logLevel": "off", "logFolder": "/tmp/sl-logs", "scannerJar": "./sl-build-scanner.jar", "listenerJar": "./sl-test-listener.jar", "sealightsJvmParams": { "sl.scm.provider": "bitbucket" } }' > sl-configgradle-build.json echo "Updating Build.gradle with Sealights..." java -jar sl-build-scanner.jar -gradle -configfile sl-gradle-configbuild.json -workspacepath . |
Next step is to run your regular Gradle build command, e.g. gradle clean build.
...