fix
parent
adc14cfd72
commit
f95077e853
|
|
@ -926,16 +926,16 @@ class AWSBuildEnvironment {
|
|||
let t2;
|
||||
try {
|
||||
const t1 = Date.now();
|
||||
core.info(`Setup job time: ${Math.floor((t0 - t1) / 1000)}`);
|
||||
core.info(`Setup job time: ${Math.floor((t1 - t0) / 1000)}s`);
|
||||
yield aws_build_runner_1.default.runTask(taskDef, ECS, CF, environment, buildId, commands);
|
||||
t2 = Date.now();
|
||||
core.info(`Run job time: ${Math.floor((t1 - t2) / 1000)}`);
|
||||
core.info(`Run job time: ${Math.floor((t2 - t1) / 1000)}s`);
|
||||
}
|
||||
finally {
|
||||
yield this.cleanupResources(CF, taskDef);
|
||||
const t3 = Date.now();
|
||||
if (t2 !== undefined)
|
||||
core.info(`Cleanup job time: ${Math.floor((t2 - t3) / 1000)}`);
|
||||
core.info(`Cleanup job time: ${Math.floor((t3 - t2) / 1000)}s`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -2236,10 +2236,10 @@ class RemoteBuilder {
|
|||
yield this.RemoteBuilderProviderPlatform.setupSharedBuildResources(this.buildGuid, this.buildParams, this.branchName, this.defaultSecrets);
|
||||
yield RemoteBuilder.SetupStep();
|
||||
const t2 = Date.now();
|
||||
core.info(`Setup time: ${Math.floor((t2 - t) / 1000)}`);
|
||||
core.info(`Setup time: ${Math.floor((t2 - t) / 1000)}s`);
|
||||
yield RemoteBuilder.BuildStep(baseImage);
|
||||
const t3 = Date.now();
|
||||
core.info(`Build time: ${Math.floor((t3 - t2) / 1000)}`);
|
||||
core.info(`Build time: ${Math.floor((t3 - t2) / 1000)}s`);
|
||||
yield RemoteBuilder.CompressionStep();
|
||||
core.info(`Post build steps ${this.buildParams.postBuildSteps}`);
|
||||
this.buildParams.postBuildSteps = yaml_1.default.parse(this.buildParams.postBuildSteps);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -65,14 +65,14 @@ class AWSBuildEnvironment implements RemoteBuilderProviderInterface {
|
|||
let t2;
|
||||
try {
|
||||
const t1 = Date.now();
|
||||
core.info(`Setup job time: ${Math.floor((t0 - t1) / 1000)}`);
|
||||
core.info(`Setup job time: ${Math.floor((t1 - t0) / 1000)}s`);
|
||||
await AWSBuildRunner.runTask(taskDef, ECS, CF, environment, buildId, commands);
|
||||
t2 = Date.now();
|
||||
core.info(`Run job time: ${Math.floor((t1 - t2) / 1000)}`);
|
||||
core.info(`Run job time: ${Math.floor((t2 - t1) / 1000)}s`);
|
||||
} finally {
|
||||
await this.cleanupResources(CF, taskDef);
|
||||
const t3 = Date.now();
|
||||
if (t2 !== undefined) core.info(`Cleanup job time: ${Math.floor((t2 - t3) / 1000)}`);
|
||||
if (t2 !== undefined) core.info(`Cleanup job time: ${Math.floor((t3 - t2) / 1000)}s`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,10 +53,10 @@ class RemoteBuilder {
|
|||
);
|
||||
await RemoteBuilder.SetupStep();
|
||||
const t2 = Date.now();
|
||||
core.info(`Setup time: ${Math.floor((t2 - t) / 1000)}`);
|
||||
core.info(`Setup time: ${Math.floor((t2 - t) / 1000)}s`);
|
||||
await RemoteBuilder.BuildStep(baseImage);
|
||||
const t3 = Date.now();
|
||||
core.info(`Build time: ${Math.floor((t3 - t2) / 1000)}`);
|
||||
core.info(`Build time: ${Math.floor((t3 - t2) / 1000)}s`);
|
||||
await RemoteBuilder.CompressionStep();
|
||||
core.info(`Post build steps ${this.buildParams.postBuildSteps}`);
|
||||
this.buildParams.postBuildSteps = YAML.parse(this.buildParams.postBuildSteps);
|
||||
|
|
|
|||
Loading…
Reference in New Issue