InfraBox
InfraBox copied to clipboard
Triggering build with tag triggers branch instead of tag build
Describe the bug When manually triggering a build with a tag on master, Infrabox ran a master branch build instead of a tag build, where the tag was not in the environment variable.
To Reproduce Steps to reproduce the behavior:
- It's likely that we saw this when we had an outage during the initial tagging, so assume that a tag happened while github hooks weren't working. I have not verified that this happens all the time or not.
- Go to the project where you have a tag
- Click on "Trigger Build"
- Put the tag name in "Branch or Sha"
- Notice that the build is running for the
masterbranch.
Expected behavior I would expect a tag build to be run with that tag ref, as I would need to trigger a tag build if the webhook failed.
Additional context Using Infrabox build_1859