I use Gitlab CI/CD for deploying my projects. I use Gitlab REST API for manipulating with pipelines. For starting pipeline I can use this endpoint:
POST /projects/:id/trigger/pipeline
response for that request something like this:
{
"ref": "master_branch",
"status": "pending"
}
.. and nothing about triggered pipeline ID.
Also I want to know some info about triggered pipeline using:
GET /projects/:id/pipelines/:pipeline_id
.. but I don't know pipeline ID.
Yes, I know about list of pipelines with GET /projects/:id/pipelines
, but it is not what I actually want.
How to know trigger pipeline ID?