Run build with input commands
parent
34ee8bde5f
commit
926e500b89
|
|
@ -1018,14 +1018,12 @@ class Kubernetes {
|
||||||
const phase = (_b = pod.status) === null || _b === void 0 ? void 0 : _b.phase;
|
const phase = (_b = pod.status) === null || _b === void 0 ? void 0 : _b.phase;
|
||||||
if (phase === 'Running') {
|
if (phase === 'Running') {
|
||||||
core.info('Pod no longer pending');
|
core.info('Pod no longer pending');
|
||||||
|
ready = true;
|
||||||
|
return pod;
|
||||||
}
|
}
|
||||||
if (phase !== 'Pending') {
|
if (phase !== 'Pending') {
|
||||||
core.error('Kubernetes job failed');
|
core.error('Kubernetes job failed');
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
ready = true;
|
|
||||||
return pod;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -304,12 +304,11 @@ class Kubernetes {
|
||||||
const phase = pod.status?.phase;
|
const phase = pod.status?.phase;
|
||||||
if (phase === 'Running') {
|
if (phase === 'Running') {
|
||||||
core.info('Pod no longer pending');
|
core.info('Pod no longer pending');
|
||||||
|
ready = true;
|
||||||
|
return pod;
|
||||||
}
|
}
|
||||||
if (phase !== 'Pending') {
|
if (phase !== 'Pending') {
|
||||||
core.error('Kubernetes job failed');
|
core.error('Kubernetes job failed');
|
||||||
} else {
|
|
||||||
ready = true;
|
|
||||||
return pod;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue