use /output json and /output buildserver
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user