API Calls
A GitLab DevOps pipeline can be triggered via an API call using a pipeline trigger token which is created on the GitLab instance, with the following values:
<trigger_token>
: The user GitLab trigger token.<digital_twin_name>
: The name of the DT (e.g. mass-spring-damper).<runner_tag>
: The specific tag of the GitLab runner that the user wants to use.<project_id>
: The ID of the GitLab project, displayed in the project overview page.
The example given below sets the DTName
variable to the desired DT name,
the RunnerTag
variable to the specified GitLab Runner tag, and ensures the call
will be executed in the main
branch:
Ref: Vanessa Scherma, Design and implementation of an integrated DevOps framework for Digital Twins as a Service software platform, Master's Degree Thesis, Politecnico Di Torino, 2024.