Skip to content

Commit

Permalink
Fixing Jenkinsfile 3
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Dec 16, 2023
1 parent ad162d2 commit b1797e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pipeline {
echo "HTTP response: $response"

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

0 comments on commit b1797e2

Please sign in to comment.