Pipeline API

Hi Team,

I am using API to trigger Gitlab pipeline. In that request I am passing ref & token parameters to select the branch and trigger the pipeline. I want to use same ref variable value into stage script tag.

Is it possible to access ref variable into the stage script? If yes, how?

Thanks in advance