Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit 59a1e17

Browse files
committed
Update sha comparison
1 parent 09db888 commit 59a1e17

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ pipeline {
6969
git fetch -q
7070
7171
# note when tag not found git rev-parse will just print its name
72-
TAG=`git rev-parse tags/v$VERSION 2>/dev/null || :`
72+
# TAG=`git rev-parse tags/v$VERSION 2>/dev/null || :`
73+
TAG=`git rev-list -n 1 "v$VERSION 2>/dev/null || :`
7374
echo Tag v$VERSION: $TAG
7475
7576
HEAD=`git rev-parse HEAD`
@@ -85,7 +86,7 @@ pipeline {
8586
sh 'docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd'
8687

8788
sh './publish.sh'
88-
89+
8990
// Clean up again...
9091
sh 'docker run -i --rm -v $PWD:/src -w /src alpine/git clean -fxd'
9192
deleteDir()

0 commit comments

Comments
 (0)