You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running plugin metahook pre-command hook
# A hook runner was written to "C:\users\buildkite-agent\tmp\d6018259-8f4c-4680-a375-53215e54e7cd\buildkite-agent-bootstrap-hook-runner-106667881" with the following:
> C:\users\buildkite-agent\tmp\d6018259-8f4c-4680-a375-53215e54e7cd\buildkite-agent-bootstrap-hook-runner-106667881
# Attempting to run C:\users\buildkite-agent\tmp\d6018259-8f4c-4680-a375-53215e54e7cd\buildkite-agent-bootstrap-hook-runner-106667881 with Bash for Windows
c:/users/buildkite-agent/AppData/Local/buildkite-agent/plugins/github-com-improbable-eng-metahook-buildkite-plugin-v0-4-1/hooks/run-hook.sh: line 17: !var_name: unbound variable
It appears as though if you do not define a pre-command hook, it tries to execute it anyways and fails.
Spoke with @ca-johnson and it seems that it's a bad idea to invoke metahook more than once in the same step. In my case I was using it for different clean up steps. If that's a problem, we should simply improve the error messaging to let users know not to do that
It appears as though if you do not define a pre-command hook, it tries to execute it anyways and fails.
example of my plugin declaration:
https://buildkite.com/improbable/midwinter-code/builds/674#d6018259-8f4c-4680-a375-53215e54e7cd/267-271
example of error no longer occurring if plugin is defined as:
https://buildkite.com/improbable/midwinter-code/builds/680#b4e799c4-2a07-4f59-aa87-f8e834ef74ff
The text was updated successfully, but these errors were encountered: