mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-05-25 01:03:35 +00:00
Fix tools stage dist files cleaning
This commit is contained in:
Vendored
+6
-5
@@ -1,4 +1,5 @@
|
|||||||
def HELM_DOWNLOAD_URL = "https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz"
|
def HELM_DOWNLOAD_URL = "https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz"
|
||||||
|
def WS_DIST = ".dist"
|
||||||
def WS_BIN = ".bin"
|
def WS_BIN = ".bin"
|
||||||
def WS_SCM = ".scm"
|
def WS_SCM = ".scm"
|
||||||
|
|
||||||
@@ -29,20 +30,20 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage("Prepare Tools") {
|
stage("Download Helm") {
|
||||||
when {
|
when {
|
||||||
not {
|
not {
|
||||||
expression { return fileExists("${WS_BIN}/linux-amd64/helm") }
|
expression { return fileExists("${WS_BIN}/linux-amd64/helm") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
dir("${WS_BIN}") {
|
dir("${WS_DIST}") {
|
||||||
sh """
|
sh """
|
||||||
curl -fsSL -O "${HELM_DOWNLOAD_URL}";
|
curl -fsSL -O "${HELM_DOWNLOAD_URL}";
|
||||||
tar xfz *;
|
tar xfz -C "${env.WORKSPACE}/${WS_BIN}" *;
|
||||||
rm -f *;
|
ls -lah "${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm";
|
||||||
ls -lah ./linux-amd64/helm;
|
|
||||||
"""
|
"""
|
||||||
|
deleteDir()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user