d6d835e414
When there is no commit since the tag, we don't want the scm_sha part of project_ver, but just the scm_tag. This patch fix the logic. Change-Id: I89e59049fe65ebc49fc03f205affa68b8fa5beb9 |
||
---|---|---|
.. | ||
defaults | ||
tasks | ||
README.rst |
Sets three facts based on information in a git repo.
- scm_sha
-
The short sha found in the repository.
- project_ver
-
A string describing the project's version. It will either be the value of {{ zuul.tag }} or {{ scm_tag }}.{{ commits_since_tag }}.{{ scm_sha }} otherwise where
scm_tag
is either the most recent tag or the value ofscm_sha
if there are no commits in the repo. - commits_since_tag
-
Number of commits since the most recent tag.
Role Variables