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

Question about latest release (latest tag)

Open stewartbryson opened this issue 5 years ago • 3 comments

I have a simple requirement, and already use this plugin for releasing, so was curious if this plugin could handle it.

For smoke testing purposes I have with a Gradle project, I need to easily pull the latest release version number so I can run some integration tests and compare with the last release. I am guessing there is a method in here somewhere that I can use... but I haven't found it yet. I will keep looking, but if you know the answer, could you provide it?

Thank you.

stewartbryson avatar Mar 16 '19 15:03 stewartbryson

Hi :) I don't think i understand the question, what do you mean by "easiily pill the latest release version"? What is the "last release"? Is all happening inside Gradle script and you want to access some methods from scmVersion?

adamdubiel avatar Mar 18 '19 06:03 adamdubiel

Hi :) I don't think i understand the question, what do you mean by "easiily pill the latest release version"? What is the "last release"? Is all happening inside Gradle script and you want to access some methods from scmVersion?

Sorry... I just want to get a String containing the most recent tag. Similar to git describe but without all commit distance extras.

stewartbryson avatar Mar 18 '19 12:03 stewartbryson

Currently there is no API that would get you exactly the tag, but scmVersion.getScmPosition returns VersionScmPosition.

adamdubiel avatar Mar 18 '19 13:03 adamdubiel