I’m trying to create an orb with a job to which an executor could be passed using parameters, but I’m getting an “Unexpected executor invocation format” error when running orb validate command.
I was able to achieve what I desired in a different way by passing tag as an executor argument in workflow, however, doing so requires to also specify the executor name in the workflow which I’d like to avoid as I would like default to be used.
I’ve created the following example orb that has the issue I’m facing:
$ circleci orb --skip-update-check validate orb.yml
Error: Error calling job: 'php-test'
Unexpected executor invocation format
The value of `name` must be a string
Examples of correct executor invocation:
executor: string-executor-name
executor: {name: string-executor-name}
executor: << parameters.executor-type-parameter >>
Hello @martinssipenko, and welcome to the CircleCI Discuss community!
I believe the issue stems the use of executor --which is a reserved keyword-- as the parameter name.
Also, as stated in the other error message, the value given to name must be a string.
Furthermore, if you want to have the tag you specify as a job parameter passed to the executor parameter, and the into the reusable executor you declared, you’ll need to use “pass-through” parameters.
Hi, so what was the resolution to this? I’m getting the same error and there’s no “TEST-STRING” anywhere in my orb.yml file. Also, I’m getting this error when I run circleci orb publish and not when I’m executing any workflow.