How can I get the CI/CD variables defined for a project's pipeline execution


#1

There is a web service that does provide me all the variables defined for a project’s CI/CD.

curl --header “PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK” “https://gitlab.example.com/api/v4/projects/1/variables

However , if I have multiple users sharing the same project or if pipeline takes a while to complete and multiple executions are kicked off at the same time, I have no idea what were the exact variables that were defined for that pipeline.

Is there a way to get that information? Ideally I was hoping all the variables would be stored somewhere for every Pipeline execution, but I couldn’t see them even in the ci_pipeline_variables table either:(

Does anyone know?


#2

Anyone knows about this one?