Treatment postGitlabState
cicd/services/gitlab::postGitlabState
Parameters
↳ var description: string
↳ var log_response: bool = false
↳ var name: string
↳ var pipeline: string
↳ var project: string
↳ var ref: string
↳ var root_url: string
↳ var sha: string
↳ var state: StepState (cicd/services/gitlab::StepState)
↳ var token: string
Inputs
⇥ trigger: Block<void>
Post a commit status to the GitLab API.
Sends a POST request to {root_url}/projects/{project}/statuses/{sha} using token for
authentication. The body carries state, ref, pipeline, name, description, and a
link back to the Mélodium execution dashboard as target_url.
When log_response is true, the raw response body is logged at info level under the
"GitLab API" label; errors are always logged.