Skip to content

Commit 0ecbac1

Browse files
send cli version to lsrs
1 parent b4a27bd commit 0ecbac1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/lib/httpClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export default class httpClient {
155155
git,
156156
config,
157157
buildName,
158-
isStartExec
158+
isStartExec,
159+
packageVersion: pkgJSON.version
159160
}
160161
}, log)
161162
}

src/tasks/createBuildExec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
1919
baseline: resp.data.baseline,
2020
useKafkaFlow: resp.data.useKafkaFlow || false,
2121
}
22+
if (ctx.build.id === '') {
23+
ctx.log.debug('Build creation failed: Build ID is empty');
24+
task.output = chalk.gray('Build creation failed: Build ID is empty');
25+
throw new Error('SmartUI build creation failed');
26+
}
2227
task.output = chalk.gray(`build id: ${resp.data.buildId}`);
2328
task.title = 'SmartUI build created'
2429
} else {

0 commit comments

Comments
 (0)