Table of Contents |
---|
...
- Command Line Interface of the Java Agent (CLI)
- Sealights' Jenkins Plugin for Maven
- Integration with the Travis CI (.travis.yml)
...
Pull Request Analysis via Default Agent usage (CLI)
Code Block | ||||
---|---|---|---|---|
| ||||
java -jar sl-build-scanner.jar -prConfig -latestCommit <arg> -pullRequestNumber <arg> -repoUrl <arg> -targetBranch <arg> -token <arg> | -tokenfile <arg> [-appname <arg>] [-pe <arg>] [-pi <arg>] [-proxy <arg>] [-enableNoneZeroErrorCode] |
...
You can easily identify the relevant values to pass to the Build Scanner based on the illustration below.
...
Pull Request Analysis vis Jenkins Automation Plugin for Maven
TBC
Sealights'
...
Pull Request Analysis Integration with TRAVIS-CI
The parameters necessary for the TRAVIS CI Integration are : TRAVIS_PULL_REQUEST, TRAVIS_REPO_SLUG, TRAVIS_PULL_REQUEST_SHA, TRAVIS_BRANCH
...
Sealights' Parameter | Travis CI Env. Variable | Comment |
---|---|---|
latestCommit | TRAVIS_PULL_REQUEST_SHA, | |
pullRequestNumber | TRAVIS_PULL_REQUEST | |
repoUrl | TRAVIS_REPO_SLUG | You may need to prepend the base URL of your Github repository, like "https://github.com/$TRAVIS_REPO_SLUG" |
targetBranch | TRAVIS_BRANCH | You may need to prepend "origin/" to the branch exact matching. |
...