Skip to content

Commit

Permalink
jfcli
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Oct 3, 2023
1 parent bb7d761 commit 9561fc1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions linux/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

Expand All @@ -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}"



}
Expand Down

0 comments on commit 9561fc1

Please sign in to comment.