Add creation of directory before extracting files in Jenkinsfile

Created a new directory before extracting files to ensure successful file extraction during the build process in Jenkins.
main
Nikita Tokarchuk 4 months ago
parent 576b795f5f
commit 3a6bc59683
Signed by: mainnika
GPG Key ID: 5CDEED14F48FA79D
  1. 1
      .jenkins/Jenkinsfile

@ -40,6 +40,7 @@ pipeline {
dir("${WS_DIST}") {
sh """
curl -fsSL -O "${HELM_DOWNLOAD_URL}";
mkdir -p "${env.WORKSPACE}/${WS_BIN}";
tar xfz -C "${env.WORKSPACE}/${WS_BIN}" *;
ls -lah "${env.WORKSPACE}/${WS_BIN}/linux-amd64/helm";
"""

Loading…
Cancel
Save