corrects detection script for alpine
This commit is contained in:
parent
21a626c645
commit
059a1d20b3
@ -43,21 +43,20 @@ pipeline {
|
|||||||
if ! command -v git &> /dev/null; then
|
if ! command -v git &> /dev/null; then
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
fi
|
fi
|
||||||
|
apk add --no-cache git
|
||||||
"""
|
"""
|
||||||
k8slensVersion = "refs/tags/" + sh (
|
k8slensVersion = "refs/tags/" + sh (
|
||||||
script: """
|
script: """
|
||||||
git \
|
git \
|
||||||
-c 'versionsort.suffix=-' \
|
-c 'versionsort.suffix=-' \
|
||||||
--exit-code \
|
ls-remote https://gitea.smoothnet.org/nhyatt/openlens.git 'v*.*.*' \
|
||||||
--refs \
|
|
||||||
--sort='version:refname' \
|
|
||||||
--tags \
|
|
||||||
ls-remote ssh://git@gitea.smoothnet.org:31822/nhyatt/openlens.git 'v*.*.*' \
|
|
||||||
| tail \
|
|
||||||
--lines=1 \
|
|
||||||
| cut \
|
| cut \
|
||||||
--delimiter='/' \
|
--delimiter='/' \
|
||||||
--fields=3
|
--fields=3 \
|
||||||
|
| sort \
|
||||||
|
-u \
|
||||||
|
| tail \
|
||||||
|
-n 1
|
||||||
""",
|
""",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
|
Reference in New Issue
Block a user