Configure Pull Request Flow for SeaLights
1
Create a Build Session ID for the Pull Request
Parameter Name
Description
Sample commands
java -jar sl-build-scanner.jar -prConfig -tokenfile sltoken.txt -appname "MyAppJava" -targetBranch "master" -latestCommit "$MYGH_PR_COMMIT" -pullRequestNumber "807" -repoUrl "https://www.github.com/myappjava/" -pi "*com.example.*"./node_modules/.bin/slnodejs prConfig --tokenfile sltoken.txt --appname "MyAppjs" --pullRequestNumber "448" --targetBranch "develop" --latestCommit $MYGH_PR_COMMIT --repositoryUrl "https://www.github.com/myappjs/" --proxy "http://proxy2.int" SL.DotNet.exe prConfig --appName "myApp.Net" --pullRequestNumber "770" --targetBranch "develop" --latestCommit $MYGH_PR_COMMIT --repositoryUrl "https://www.github.com/myappdotnet/" --includeNamespace myNameSpace.* --buildSessionIdFile buildSessionId.txtsl-python prConfig --tokenfile sltoken.txt --appname "MyApp.py" --targetbranch "main" --pullrequestnumber "123" --latestcommit $MYGH_PR_COMMIT --repourl "https://www.github.com/mypythonapp/" ./slcli config create-pr-bsid --app "Myapp.go" --target-branch "main" --pull-request-number "123" --latest-commit $MYGH_PR_COMMIT --repository-url "https://www.github.com/mypgolangapp/"4
PR Integration with Maven/Gradle plugins
Parameter
Type
Notes
Sample JSON for Maven/Gradle plugin
{
"executionType": "full",
"tokenFile": "./sltoken.txt",
"createPRBuildSessionId": true,
"appName": "${JOB_NAME}",
"repositoryUrl": "https://www.github.com/${JOB_NAME}",
"pullRequestNumber": "123",
"latestCommit": "${MYGH_PR_COMMIT}",
"targetBranch": "master",
"packagesIncluded": "*com.example.*",
"packagesExcluded": "",
"filesIncluded": "*.class",
"filesExcluded": "*test-classes*",
"recursive": true,
"includeResources": true,
"testStage": "Unit Tests",
"proxy": null,
"logEnabled": false,
"logDestination": "console",
"logLevel": "warn",
"sealightsJvmParams": {}
}Related articles
Last updated
Was this helpful?




