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 1ee935a commit a5acd93
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions linux/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,15 @@ def uploadAlpineArtifacts(String buildArch) {

env.TARGET = Target
echo "TARGET = ${TARGET}"
def CheckExists = jf 'rt s ${TARGET} --count'

// Execute the jf command and redirect output to a temporary file
jf "rt s ${TARGET} --count > temp_output.txt"
// Read the file content
def CheckExists = readFile('temp_output.txt').trim()

echo "Check : CheckExists"

if jf 'rt s ${TARGET}' {
echo file_exists=true
} else {
echo file_exists=false
}

}

// try {
Expand Down

0 comments on commit a5acd93

Please sign in to comment.