Commit eea8395e authored by Robert Schmidt's avatar Robert Schmidt

Increase timeout for "oc get pods" when waiting for build

parent a4e4bd1f
...@@ -134,7 +134,7 @@ class Cluster: ...@@ -134,7 +134,7 @@ class Cluster:
while timeout_sec > 0: while timeout_sec > 0:
# check status # check status
for j in jobs: for j in jobs:
sshSession.command(f'oc get pods | grep {j}', '\$', 10, silent = True) sshSession.command(f'oc get pods | grep {j}', '\$', 30, silent = True)
if sshSession.getBefore().count('Completed') > 0: jobs.remove(j) if sshSession.getBefore().count('Completed') > 0: jobs.remove(j)
if sshSession.getBefore().count('Error') > 0: if sshSession.getBefore().count('Error') > 0:
logging.error(f'error for job {j}: ' + sshSession.getBefore()) logging.error(f'error for job {j}: ' + sshSession.getBefore())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment