Legacy .NET agent - command reference
- 1 Creating a session ID
- 2 Preparing a build for MSBuild
- 3 Scanning a build
- 4 Starting a test stage
- 5 Upload report files
- 6 Ending a test stage
- 7 Starting the test listener
- 8 Starting Background test listener
- 9 Running background processes
- 10 Stop Background test listener
- 11 Starting the Service test listener
- 12 Stopping the Service test listener
- 13 Logging
All the commands below have the sltoken
and sltokenfile
flags as optional. They only need to be used if you have not placed the sltoken.txt
file inside the agents folder (x86, x64 or both).
Creating a session ID
Standard Session ID
SL.DotNet.exe config --appName <arg> --branchName <arg> --buildName <arg> --includeNamespace <arg> [--excludeNamespace <arg>] [--include <arg>] [--exclude <arg>] [--buildSessionId <arg> | --buildSessionIdFile <arg>] [--token <arg> | --tokenFile <arg>] [--proxy <arg> [--proxyUsername <arg> --proxyPassword <arg>]]
Parameter | Description |
---|---|
| Name of the application |
| The source branch of the application |
| The build label of the current build |
| Comma-separated, key-sensitive list of namespaces to include in scan. |
| Comma-separated, key-sensitive list of packages to exclude from scan. |
| Comma-separated list of files to include in scan. Default: |
| Comma-separated list of files to exclude from scan. |
| Optional: A user provided session ID |
| Optional: A user provided Build Session ID file. |
| Access token generated from the SeaLights server |
| Path to file containing the access token generated from the SeaLights server |
| Address of proxy to run connection through |
| The proxy username if needed |
| The proxy password if needed |