Set pipeline name when triggering with api
We trigger a pipeline using the the API from the command line. This works fine, but the pipeline then shows up with the message of the last commit as title.
This commit message has no relevance to the run at all. How can we provide a name to be displayed in the Pipeline column on the Build - Pipelines page in Gitlab ?
@markus_ba Welcome to the forum!
I think the
workflow:name keyword should help here. It can be combined with
$CI_PIPELINE_SOURCE to match on pipelines started through the API and given them a specific name.
I hope this helps!
-James H, GitLab Product Manager, Analyze:Product Analytics
this works perfectly well !
I just had to add
and trigger with curl this way:
curl --form variables[myRunName]="this is my job name" ...
And I get my own title in the list.
Great ! Thanks !