...
Download a token from the SeaLights dashboard and place the sltoken.txt
file in the working directory
Info |
---|
See 'Generating an Agent token' for instructions on how to generate a token |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
Generating a session ID in Python is done using the SeaLights Python Agent with the config flag
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sl-python config --appname myApp --branchname master --buildname 1 --exclude "*venv*" [--workspacepath /path/to/app] |
Using the session ID
The session ID will be printed to the console output and a file called 'buildSessionId.txt' will be generated containing it.
The file can be used as is in the agent parameters or can be used to fill in an environment parameter to be in a command line.
Copying token to environment variable
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Unix: export SL_BUILD_SESSION_ID=`cat buildSessionId.txt` Windows: set /p SL_BUILD_SESSION_ID=<buildSessionId.txt |