diff --git a/linux/Jenkinsfile b/linux/Jenkinsfile index 53a9aa69c..3a3f4ae30 100644 --- a/linux/Jenkinsfile +++ b/linux/Jenkinsfile @@ -302,10 +302,15 @@ def uploadAlpineArtifacts(String buildArch) { env.TARGET = Target echo "TARGET = ${TARGET}" - env.JFROG_CLI_LOG_LEVEL = WARN - jf 'rt s ${TARGET} --count' - result = stdout.tokenize().last() - echo "Result : ${result}" + // jf 'rt s ${TARGET} --count' + def data = 'rt s ${TARGET} --count' + writeFile(file: 'temp_output.txt, text: data') + + def CheckExists = readFile('temp_output.txt').trim() + echo "Check : ${CheckExists}" + + // result = stdout.tokenize().last() + // echo "Result : ${result}" //def CheckExists = (jf 'rt s ${TARGET}') @@ -316,7 +321,7 @@ def uploadAlpineArtifacts(String buildArch) { // jf 'rt s ${TARGET} --count' > temp_output.txt // Read the file content // def CheckExists = readFile('temp_output.txt').trim() - // echo "Check : ${CheckExists}" + }