Versions Compared

Key

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

...

  • Before making the required configurations on the Bitbucket on-premise installation, a Personal Access Token must be created for authentication with the dedicated SeaLights agent:
    • In BitBucket, click on the logged in user and select 'Manage Account'
    • On the Left hand side pane, select "Personal access tokens"
    • Create a new token to be used to show results in the Bitbucket UI:


→ 


Info

The application will not modify anything in your repositories and projects as it only requires Read access.


SeaLights Task Runner App Installation

...

Code Block
titlesl-taskrunner-cfg.json example
{
    "tokenFile": "config/sltoken.txt",
        	"bitbucketServer":
                {
     
                  "url": "http://bitbucket.internal.net:7990",
           
            "token":"<personal access token>"
       
        }
}


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

Configuring the pull request job

...