vyadh / teamcity-deployment-dashboard

A TeamCity dashboard to help summarise what app version has been released to what environment.
Apache License 2.0
26 stars 5 forks source link

Allow ignoring irrelevant parts of the version string in "latest" semver calculation #3

Closed vyadh closed 5 years ago

vyadh commented 5 years ago

The plugin currently uses semver to calculate what is the latest build, and either highlights/fades out deployments.

However, if you're not using the exact version number through different environments, the plugin does not highlight deployments as expected. For example, if you leave the build numbers for each deployment as independently incrementing.

A simple way to solve this is to assume that the semver part comes first, and anything after is just metadata. We could do this by ignoring anything after a space in the version string.

We should also better document how this works in the readme.