follow logs
parent
729c7ce14f
commit
968a9190d6
|
|
@ -913,9 +913,9 @@ class Kubernetes {
|
||||||
cp -r /data/builder/dist/default-build-script /UnityBuilderAction
|
cp -r /data/builder/dist/default-build-script /UnityBuilderAction
|
||||||
cp -r /data/builder/dist/entrypoint.sh /entrypoint.sh
|
cp -r /data/builder/dist/entrypoint.sh /entrypoint.sh
|
||||||
cp -r /data/builder/dist/steps /steps
|
cp -r /data/builder/dist/steps /steps
|
||||||
chmod -R +x /entrypoint.sh;
|
chmod -R +x /entrypoint.sh
|
||||||
chmod -R +x /steps;
|
chmod -R +x /steps
|
||||||
/entrypoint.sh;
|
/entrypoint.sh
|
||||||
`,
|
`,
|
||||||
],
|
],
|
||||||
resources: {
|
resources: {
|
||||||
|
|
@ -1042,7 +1042,7 @@ class Kubernetes {
|
||||||
if (((_f = (_e = podStatus.body) === null || _e === void 0 ? void 0 : _e.status) === null || _f === void 0 ? void 0 : _f.phase) !== 'Running') {
|
if (((_f = (_e = podStatus.body) === null || _e === void 0 ? void 0 : _e.status) === null || _f === void 0 ? void 0 : _f.phase) !== 'Running') {
|
||||||
complete = true;
|
complete = true;
|
||||||
}
|
}
|
||||||
const logs = yield this.kubeClient.readNamespacedPodLog(podname, this.namespace, undefined, undefined, undefined, undefined, undefined, undefined, logQueryTime, undefined, true);
|
const logs = yield this.kubeClient.readNamespacedPodLog(podname, this.namespace, undefined, true);
|
||||||
if (logs.body !== undefined) {
|
if (logs.body !== undefined) {
|
||||||
const arrayOfLines = (_h = (_g = logs.body) === null || _g === void 0 ? void 0 : _g.match(/[^\n\r]+/g)) === null || _h === void 0 ? void 0 : _h.reverse();
|
const arrayOfLines = (_h = (_g = logs.body) === null || _g === void 0 ? void 0 : _g.match(/[^\n\r]+/g)) === null || _h === void 0 ? void 0 : _h.reverse();
|
||||||
if (!arrayOfLines) {
|
if (!arrayOfLines) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -199,9 +199,9 @@ class Kubernetes {
|
||||||
cp -r /data/builder/dist/default-build-script /UnityBuilderAction
|
cp -r /data/builder/dist/default-build-script /UnityBuilderAction
|
||||||
cp -r /data/builder/dist/entrypoint.sh /entrypoint.sh
|
cp -r /data/builder/dist/entrypoint.sh /entrypoint.sh
|
||||||
cp -r /data/builder/dist/steps /steps
|
cp -r /data/builder/dist/steps /steps
|
||||||
chmod -R +x /entrypoint.sh;
|
chmod -R +x /entrypoint.sh
|
||||||
chmod -R +x /steps;
|
chmod -R +x /steps
|
||||||
/entrypoint.sh;
|
/entrypoint.sh
|
||||||
`,
|
`,
|
||||||
],
|
],
|
||||||
resources: {
|
resources: {
|
||||||
|
|
@ -328,19 +328,7 @@ class Kubernetes {
|
||||||
complete = true;
|
complete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const logs = await this.kubeClient.readNamespacedPodLog(
|
const logs = await this.kubeClient.readNamespacedPodLog(podname, this.namespace, undefined, true);
|
||||||
podname,
|
|
||||||
this.namespace,
|
|
||||||
undefined,
|
|
||||||
undefined,
|
|
||||||
undefined,
|
|
||||||
undefined,
|
|
||||||
undefined,
|
|
||||||
undefined,
|
|
||||||
logQueryTime,
|
|
||||||
undefined,
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (logs.body !== undefined) {
|
if (logs.body !== undefined) {
|
||||||
const arrayOfLines = logs.body?.match(/[^\n\r]+/g)?.reverse();
|
const arrayOfLines = logs.body?.match(/[^\n\r]+/g)?.reverse();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue