Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: BUILDKITE_PLUGIN_GIT_TAG_GITHUBTOKEN: unbound variable #2

Open
abendt opened this issue Mar 30, 2021 · 0 comments
Open

ERROR: BUILDKITE_PLUGIN_GIT_TAG_GITHUBTOKEN: unbound variable #2

abendt opened this issue Mar 30, 2021 · 0 comments

Comments

@abendt
Copy link

abendt commented Mar 30, 2021

when using the Plugin we get the following error:

Tagging with DEV-896 | 5s
-- | --
  | Tags pushed | 0s
  | /etc/buildkite-agent/plugins/github-com-tendnz-git-tag-buildkite-plugin-v1-0-7/hooks/post-command: line 27: BUILDKITE_PLUGIN_GIT_TAG_GITHUBTOKEN: unbound variable
  | 🚨 Error: The plugin git-tag post-command hook exited with status 1

The tag is created and is visible afterwards.

As we don't want to create releases our workaround is to use a custom script that contains only the non release related lines from your post-command script. from start to this line: https://github.com/tendnz/git-tag-buildkite-plugin/blob/master/hooks/post-command#L29

we then invoke this custom script directly

- label: "git tag DEV"
   command: "./.buildkite/tag.sh DEV-${BUILDKITE_BUILD_NUMBER}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant