GH-86 - Dynamically set the GitVersion output properties

This commit is contained in:
Artur Stolear
2020-05-05 22:22:40 +03:00
committed by Artur
parent 3122616c1f
commit 2859f8cbd1
31 changed files with 554 additions and 573 deletions

View File

@@ -41,7 +41,7 @@ export async function run() {
const result = await gitVersionTool.run(settings)
const { stdout } = result
const jsonOutput = stdout.substr(stdout.indexOf('{'))
const jsonOutput = stdout.substring(stdout.indexOf('{'), stdout.indexOf('}') + 1)
const gitversion = JSON.parse(jsonOutput) as GitVersionOutput
gitVersionTool.writeGitVersionToAgent(gitversion)