Skip to content

Commit

Permalink
Ensured all conversions are made
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Dec 16, 2023
1 parent 572ea6a commit 57c05e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ pipeline {
echo "HTTP response: $response"

if (code == 200) {
def streams = sh(script: "echo '$response' | jq -M '.streams'", returnStdout: true)
String tempStreams = sh(script: "echo '$response' | jq -M '.streams'", returnStdout: true)
int streams = Integer.parseInt(tempStreams)
if (streams > 0) {
proceed = "no"
}
Expand Down

0 comments on commit 57c05e2

Please sign in to comment.