Related to No basic auth credentials, yet using ECR plugin
I’m opening this as another buildkite user on the Veertu slack channel was trying to use the anka plugin and seeing the problem.
Problem: Using a list of plugins does not work.
steps:
- label: Run target
command: whoami
plugins:
- chef/anka#v0.5.0:
vm-name: bk-macos-1551961510
debug: true
<<: *anka
The user logs show:
:anka: Pulling from Anka Registry
-anka: action failed
🚨 Error: The command exited with status 70
Running plugin anka pre-exit hook
:anka: Cleaning up clone
Error: no such option: -0
🚨 Error: Error tearing down bootstrap: The plugin anka pre-exit hook exited with status 2
But the plugin should echo the vm-name as it’s using echo "--- :anka: Pulling $(plugin_read_config VM_NAME) from Anka Registry"
Solution: Don’t use a list.
steps:
- label: Run target
command: whoami
plugins:
chef/anka#v0.5.0:
vm-name: bk-macos-1551961510
debug: true
<<: *anka
This is the same if I use the docker plugin too.