Few DevOps mechanisms are available to streamline the work with Sealights' Integration Builds
When creating the Integration Build, you’ll query one by one the components deployed in the relevant (and common Testing Lab) to retrieve their BSID.
This option is commonly used when working with containers and orchestration.
This option is commonly used when working with containers and orchestration.
Sealights Maven and Gradle plugins allow to include resource text files to the artefact.
You can extract the buildSessionId.txt
file from the Java artefact by using the following command:
java xvf myapp.jar buildSessionId.txt |
You can extract the Build Session ID of your JS component from the instrumented files using the regular grep command:
cat main.js | grep buildSessionId |
The output is "buildSessionId": "89b2477d-fed3-400d-b63f-f1ba133f5080",
Another solution is to copy the |
A second common solution is to store the buildSessionID of every component in a central place (database, folder component-specific,…) and create the Integration Build from these IDs.
A third common solution is to use Sealights Public APIs to programmatically retrieve the BSID of every component using specific criteria (the last build, a specific build from a certain date, build matching a certain naming convention…).
Please refer to the Sealights API Reference page for more details, specifically about entry points like /sl-api/v1/slim-builds
(Get Builds API) or /sl-api/v1/slim-builds/resolve
(Resolve Builds API).