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) {
|
||||
|
||||
@@ -60,7 +60,7 @@ export class GitVersionTool extends DotnetTool implements IGitVersionTool {
|
||||
workDir: string,
|
||||
options: GitVersionSettings
|
||||
): string[] {
|
||||
const args = [workDir, '/output', 'json']
|
||||
const args = [workDir, '/output', 'json', '/output', 'buildserver']
|
||||
|
||||
const {
|
||||
useConfigFile,
|
||||
|
||||
Reference in New Issue
Block a user