Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Generating a session ID

Standard Session ID

Code Block
sl-python config {--token <token> | --tokenfile <file>} --appname <appname> --branchname <branch> --buildname <build> --workspacepath <path> [--include <include>] [--exclude <exclude>] [--buildsessionid <buildsessionid>] [--proxy <proxy>] [--help]

Parameter

Description

token

Access token generated from the Sealights server

tokenfile

Path to file containing access token generated from the SeaLights server

appname

Name of the application

branchname

The source branch of the application

buildname

The build label of the current build

workspacepath

Path to the workspace where the source code exists

include

Include only files whose paths match one of these patterns.
Accepts shell-style wildcards, which must be quoted.

exclude

Omit files whose paths match one of these patterns.
Accepts shell-style wildcards, which must be quoted.

buildsessionid

Optional: A user provided session ID (case-sensitive)

proxy

Address of proxy to run connection through

help

Show Help message and exit.

Pull Request Session ID

Code Block
sl-python prConfig {--token <token> | --tokenfile <file>} --appname <appname> --targetbranch <branch> --latestcommit <commit_sha> --pullrequestnumber <number> --repourl <url> --workspacepath <path> [--include <include>] [--exclude <exclude>] [--buildsessionid <buildsessionid>] [--proxy <proxy>] [--help]

Parameter

Description

token

Access token generated from the Sealights server

tokenfile

Path to file containing access token generated from the SeaLights server

appname

Name of the application

targetbranch

The branch to which this PR will be merged into (already reported to SeaLights)

latestcommit

The full SHA of the last commit made to the Pull Request

pullrequestnumber

he number assigned to the Pull Request from the source control

repourl

The pull request URL for the PR to be scanned, up until the section before the pullRequestNumber value

workspacepath

Path to the workspace where the source code exists

include

Include only files whose paths match one of these patterns.
Accepts shell-style wildcards, which must be quoted.

exclude

Omit files whose paths match one of these patterns.
Accepts shell-style wildcards, which must be quoted.

buildsessionid

Optional: A user provided session ID (case-sensitive)

proxy

Address of proxy to run connection through

help

Show Help message and exit.

Scanning a build

Code Block
sl-python scan {--token  <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} --scm {git|none} [--scmBaseUrl <url> --scmProvider {github|gitlab|bitbucket} [--scmVersion <version>] [--proxy <proxy>] [--help]

Parameter

Description

token

Access token generated from the SeaLights server

tokenfile

Path to file containing access token generated from the SeaLights server

buildsessionid

Session ID of configuration created

buildsessionidfile

Path to file containing the Session ID of configuration created

scm

Source control used

Current options are: git, none

scmprovider

The provider name of your Source Control Management (SCM) tool.
Values: Github, Bitbucket and Gitlab (Default is Github)

scmbaseurl

The URL to the repository which contains the code.

If not provided, the url of the remote GIT origin will be used

Example: https://my.bitbucket.com/projects/ABCD/repos/XYZ/browse/A1

scmversion

The version of your Source Control Management (SCM) tool. If left blank, cloud version is assumed. Otherwise, specify the version of your on-premise server.

proxy

Address of proxy to run connection through

help

Show Help message and exit.

...