We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876678a commit 4494278Copy full SHA for 4494278
jenkinsapi/jenkins.py
@@ -555,8 +555,11 @@ def __jenkins_is_unavailable(self):
555
)
556
# If there is a running job in Jenkins, the system message will
557
# pop up but the Jenkins instance will return 200
558
- if res.status_code == 200 and "Jenkins is going to shut down" in \
559
- str(res.content, encoding="utf-8"):
+ if (
+ res.status_code == 200
560
+ and "Jenkins is going to shut down"
561
+ in str(res.content, encoding="utf-8")
562
+ ):
563
time.sleep(1)
564
continue
565
return True
0 commit comments