Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once the configuration file is created, run the SeaLights task runner .jar file, specifying the configuration file created in the previous step:

Code Block
titleRunning the SeaLights Task Runner using a configuration file
java -Dsl.config.file=config/sl-taskrunner-cfg.json -jar sl_task_runner.jar


Alternatively, the same parameters can be specified directly as Java params:

Code Block
titleRunning the SeaLights Task Runner using Java parameters
java -Dsl.tokenFile=/path/to/sltoken.txt -Dsl.bitbucketServer.url=http://bitbucket.internal.net:7990 -Dsl.bitbucketServer.token=<personal access token> -jar sl_task_runner.jar

Common configuration properties for the task runner are as follows:

PropertyDefaultRequiredDescription

sl.enableUpgrade

true

optional

Flag allows automatic upgrade

sl.upgradeIntervalMins

1440

optional

Interval in minutes for auto-upgrade version checking

sl.taskPollingIntervalSecs

60

optional

Interval in second for getting SL tasks for execution

sl.taskTimeoutSecs

60

optional

Time in second allocated for task execution; if expires, task will be aborted and reported with timeout status

sl.logs.sendIntervalMin

5

optional

Interval in minutes for sending accumulated logs to the cloud. If not defined, is forced to the default value on start

sl.token

-

mandatory *

The sealights token

sl.tokenFile

-

mandatory *

The file with sealights token

sl.proxy-optionalThe proxy configuration for connection to Sealights.

...