Commit 3b7d72ed authored by nanahira's avatar nanahira

add more logs

parent 08742393
Pipeline #4983 passed with stages
in 1 minute and 8 seconds
......@@ -193,7 +193,7 @@ export class AppService extends ConsoleLogger {
const build = new Build();
build.depot = depot;
build.version = version;
this.log(`Start packaging ${app.id}.`);
this.log(`Start packaging ${app.id} ${version} for ${JSON.stringify(depot)}.`);
try {
const previousTracingBuildChecksums = (
await this.db
......@@ -201,9 +201,11 @@ export class AppService extends ConsoleLogger {
.find({ where: { depot }, order: { id: 'DESC' }, select: ['id', 'checksum'], take: this.packageVersionTraceCount })
).map((b) => b.checksum);
const result = await this.packager.build(stream, app.packagePrefix, previousTracingBuildChecksums);
this.log(`Saving package info of ${app.id} ${version} for ${JSON.stringify(depot)}`);
build.checksum = result.checksum;
build.archives = result.archives;
await this.db.getRepository(Build).save(build);
this.log(`Finished packaging ${app.id} ${version} for ${JSON.stringify(depot)}`);
return new BlankReturnMessageDto(201, 'success');
} catch (e) {
this.error(`Build ${app.id} ${JSON.stringify(depotDto.toActual)} ${build.version} failed: ${e.toString()}`);
......
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