axion-release-plugin icon indicating copy to clipboard operation
axion-release-plugin copied to clipboard

How to validate Git tags

Open asarkar opened this issue 9 years ago • 2 comments

If I wanted to impose a tag naming convention, or in other words, disallow some tags, how could I do that? I need a hook that gets called no matter the task.

asarkar avatar Oct 07 '16 23:10 asarkar

What do you mean by "disallow some tags"? You configure the tag prefix in build.gradle and only this prefix is used. Can you give an example of expected behaviour?

adamdubiel avatar Oct 08 '16 09:10 adamdubiel

What I meant is to fail the build if the Git repo has tags we don't wanna see. Like a tag ending in SNAPSHOT. I'm asking what'd be a good place to check the Git tags and fail the build if necessary.

asarkar avatar Oct 11 '16 18:10 asarkar