...
This command will (1) restore gradle.build
from its backup, (2) delete the backup file, and (3) delete the sealights.gradle
file.
Failure at any of these steps won’t prevent the next ones so that the project is restored as much as possible.
Configuring
...
SCM to enable links from the dashboard
SeaLights, by default, provides all links to the SCM for Github. You can configure SeaLights to prepare the links for Bitbucket and Gitlab as well with the following parameters placed under the sealightsJvmParams
section:
...
Code Block | ||
---|---|---|
| ||
build: stage: build before_script: - 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", "token":"'$SEALIGHTS_AGENT_TOKEN'", "createBuildSessionId":true, "appName":"'$CI_PROJECT_NAME'", "branchName":"'$CI_COMMIT_BRANCH'", "buildName":"'$CI_PIPELINE_ID - $CI_JOB_STARTED_AT'", "packagesIncluded":"*com.mycompany.*", "sealightsJvmParams": { "sl.scm.provider": "gitlab", "sl.scm.baseUrl": "'${CI_SERVER_URL}/${CI_PROJECT_PATH}'/blob" } }' > sl-plugin-settings.json - cat sl-plugin-settings.json - echo "Updating $SL_CMDGradle with Sealights..." - java -jar sl-build-scanner.jar -gradle -configfile sl-plugin-settings.json -workspacepath . |
...