Good day, I have a variable as follows in my .gitlab-ci.yml file:
$PIPELINE_ID = (Invoke-RestMethod -Uri 'https://gitlab.example/api/v4/projects/1/pipelines/latest').id
Is this the correct way to capture values from the JSON response from that API call into a variable? This is the full response:
{
"id":10210,
"iid":1659,
"project_id":12,
...
}
Thanks for any tips / help