Skip to content

Commit

Permalink
Removed check for contents
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Dec 16, 2023
1 parent 4f6c219 commit 572ea6a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,13 @@ pipeline {
int code = Integer.parseInt(tempCode)

echo "HTTP response status code: $code"
if (response.contains("\"stream\":")) {
echo "HTTP response: $response"
echo "HTTP response: $response"

if (code == 200) {
def streams = sh(script: "echo '$response' | jq -M '.streams'", returnStdout: true)
if (streams > 0) {
proceed = "no"
}
if (code == 200) {
def streams = sh(script: "echo '$response' | jq -M '.streams'", returnStdout: true)
if (streams > 0) {
proceed = "no"
}
} else {
echo "HTTP response not JSON, proceeding..."
}
}
}
Expand Down

0 comments on commit 572ea6a

Please sign in to comment.