use /output json and /output buildserver

This commit is contained in:
Artur Stolear
2020-03-13 15:14:23 +02:00
parent 7f9dcba752
commit 0d5d730d0d
8 changed files with 16 additions and 14 deletions

View File

@@ -40,8 +40,10 @@ export async function run() {
)
const result = await gitVersionTool.run(settings)
const { stdout } = result
const jsonOutput = stdout.substr(stdout.indexOf("{"))
const gitversion = JSON.parse(result.stdout) as GitVersionOutput
const gitversion = JSON.parse(jsonOutput) as GitVersionOutput
gitVersionTool.writeGitVersionToAgent(gitversion)
if (result.code === 0) {