diff --git a/build-k8s-lenz.jenkins b/build-k8s-lenz.jenkins index 848b268..e66f6ce 100644 --- a/build-k8s-lenz.jenkins +++ b/build-k8s-lenz.jenkins @@ -43,15 +43,15 @@ pipeline { if ! command -v git &> /dev/null; then apk add --no-cache git fi - apk add --no-cache git + apk add --no-cache coreutils """ k8slensVersion = "refs/tags/" + sh ( script: """ git \ - -c 'versionsort.suffix=-' \ - ls-remote https://gitea.smoothnet.org/nhyatt/openlens.git 'v*.*.*' \ + -c \'versionsort.suffix=-\' \ + ls-remote https://gitea.smoothnet.org/nhyatt/openlens.git \'v*.*.*\' \ | cut \ - --delimiter='/' \ + --delimiter=\'/\' \ --fields=3 \ | sort \ -u \