I was wondering if there was a way to push an environment variable to a build triggered by the API?
I’m looking to parameterise the browsers being used by our end to end tests by checking an environment variable value (don’t worry, no secrets!) and I was wondering if this could be sent as a part of the POST body?
the CLI uses the API under the covers. The variables are pretty much just passed as url query parameters when you make the API call. Reference code here:
thanks for the extra info - so if I were to try to add something like BROWSER_SELECTION=primary to the /api/repos/:owner/:project/builds/latest endpoint, would it be as simple as /api/repos/:owner/:project/builds/latest?BROWSER_SELECTION=primary?
I am sending params via the API and I confirmed that the param is present in the response body for the request. However, I am not seeing the param as an environment variables in the pipeline. How would I access this parameter?
My goal is to use this value as input to filter my test suite.