Skip to content

Commit 09d22d2

Browse files
add some logging and improved creation of build_2
1 parent b01746e commit 09d22d2

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/tasks/createBuild.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
1010
updateLogContext({task: 'createBuild'});
1111

1212
try {
13-
if (ctx.authenticatedInitially) {
14-
let resp = await ctx.client.createBuild(ctx.git, ctx.config, ctx.log, ctx.build.name, ctx.isStartExec);
15-
ctx.build = {
16-
id: resp.data.buildId,
17-
name: resp.data.buildName,
18-
url: resp.data.buildURL,
19-
baseline: resp.data.baseline,
20-
useKafkaFlow: resp.data.useKafkaFlow || false,
21-
}
22-
task.output = chalk.gray(`build id: ${resp.data.buildId}`);
23-
task.title = 'SmartUI build created'
13+
let resp = await ctx.client.createBuild(ctx.git, ctx.config, ctx.log, ctx.build.name, ctx.isStartExec);
14+
ctx.build = {
15+
id: resp.data.buildId,
16+
name: resp.data.buildName,
17+
url: resp.data.buildURL,
18+
baseline: resp.data.baseline,
19+
useKafkaFlow: resp.data.useKafkaFlow || false,
2420
}
21+
task.output = chalk.gray(`build id: ${resp.data.buildId}`);
22+
task.title = 'SmartUI build created'
2523
} catch (error: any) {
2624
ctx.log.debug(error);
2725
task.output = chalk.gray(error.message);

0 commit comments

Comments
 (0)