log fixes

pull/235/head
mdugdale 2021-04-03 20:41:05 +01:00
parent 1ebb7fabec
commit ac944579ac
3 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -257,7 +257,7 @@ class AWS {
latest=$(ls -t | head -1)
echo $latest
if [ ! -z $latest ]; then
echo "Library cache exists from build $latest from $branchName"
echo "Library cache exists from build $latest from ${branchName}"
mkdir /data/${buildUid}/repo/${buildParameters.projectPath}/Library
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
else
@ -564,7 +564,7 @@ class AWS {
},
},
}).promise();
core.info('Task is starting');
core.info('Task is starting on worker cluster');
const taskArn = ((_o = task.tasks) === null || _o === void 0 ? void 0 : _o[0].taskArn) || '';
try {
yield ECS.waitFor('tasksRunning', { tasks: [taskArn], cluster }).promise();
@ -579,7 +579,7 @@ class AWS {
core.setFailed(error);
core.error(error);
}
core.info(`Task is running`);
core.info(`Task is running on worker cluster`);
yield this.streamLogsUntilTaskStops(ECS, CF, taskDef, cluster, taskArn, streamName);
yield ECS.waitFor('tasksStopped', { cluster, tasks: [taskArn] }).promise();
const exitCode = (_s = (_r = (yield ECS.describeTasks({

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@ class AWS {
latest=$(ls -t | head -1)
echo $latest
if [ ! -z $latest ]; then
echo "Library cache exists from build $latest from $branchName"
echo "Library cache exists from build $latest from ${branchName}"
mkdir /data/${buildUid}/repo/${buildParameters.projectPath}/Library
unzip -q $latest -d /data/${buildUid}/repo/${buildParameters.projectPath}/Library/.
else
@ -434,7 +434,7 @@ class AWS {
},
}).promise();
core.info('Task is starting');
core.info('Task is starting on worker cluster');
const taskArn = task.tasks?.[0].taskArn || '';
try {
@ -449,7 +449,7 @@ class AWS {
core.setFailed(error);
core.error(error);
}
core.info(`Task is running`);
core.info(`Task is running on worker cluster`);
await this.streamLogsUntilTaskStops(ECS, CF, taskDef, cluster, taskArn, streamName);
await ECS.waitFor('tasksStopped', { cluster, tasks: [taskArn] }).promise();
const exitCode = (