Skip to content

Prefer git tag before GitVersion version string

Eberhard Stoll requested to merge feature/citag into master

Prefer git tag string before a GitVersion version string

This provides more control of the used version string for releases or other tags if GitVersion would not calculate the version string desired. So all explicitly set tags or version strings are integrated into the built binaries without doubt.

If available, also ci/setversion.sh is executed with the version string as parameter to enable source code modifications. This way it is possible that the version string always matches with the version contained in the binary built by the CI.

All leading characters, underlines and hyphens are removed from the CI tag, so that they can be chosen as required.

Also the CI environment is saved in a file in deploy dir. This eases the development of ci scripts (currently ci/setversion.sh, ci/prebuild.sh, ci/posbuild.sh or other project specific scripts like artifacts packaging) by sourcing the CI environment. This is a kind of simulation of a CI build process on a local machine for debugging and development purposes.

Edited by Eberhard Stoll

Merge request reports