Skip to content

Commit 22c410a

Browse files
authored
Merge pull request #71 from StackVista/STAC-0-fix-tag-discovery
STAC-0 Fix tag discovery
2 parents 14732e2 + 432c58a commit 22c410a

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

packaging/version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
function resolveLatest() {
4-
git tag --sort=-taggerdate | head -1
4+
git describe --abbrev=0 --tag
55
}
66

77
function _hasGitChanges() {
@@ -16,7 +16,7 @@ function tagExists() {
1616
function differsFromLatest() {
1717
tag=$(resolveLatest)
1818
headtag=$(git tag -l --points-at HEAD)
19-
if tagExists $tag; then
19+
if tagExists "$tag"; then
2020
if [ "$tag" == "$headtag" ]; then
2121
#[I] tag $tag exists, and matches tag for the commit
2222
return 1
@@ -40,7 +40,7 @@ function getVersion() {
4040
if _hasGitChanges ; then
4141
result="$result-raw"
4242
fi
43-
echo $result
43+
echo "$result"
4444
}
4545

4646
getVersion

stackstate-changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# StackState Process Agent releases
2+
3+
## 2.7.5
4+
5+
**Bugfix**
6+
- fix versioning script
7+
8+
## 2.7.4
9+
10+
**Features**
11+
- Pass the cluster name along with the process metric information so that StackState can determine that the metrics came from Kuberentes/OpenShift.

0 commit comments

Comments
 (0)