The record field takes a value of type boolean and so my configuration is throwing the following error:
Type error for argument record: expected type: boolean, actual value: “$CYPRESS_RECORD” (type string)
I have tried wrapping it in << >> tags and doing some kind of equality checks and it always throws either an invalid syntax error or the incorrect type error.
Welcome to CircleCI Discuss! You’re experiencing the type error because the cypress/run job expects a boolean parameter. The parameters are evaluated when the configuration is parsed, so unfortunately you would not be able to pass in an environment variable to the record parameter in this case.
Interesting, thank you.
Part of the reason I was looking into the UI variables is because I don’t want to have to do code changes to switch recording on and off. We trigger all of our builds through our Bitbucket integration and not through the API, can we set these pipeline parameters on Bitbucket’s side?