Skip to content

Commit

Permalink
Merge pull request #1394 from arturcic/fix/1389
Browse files Browse the repository at this point in the history
#1389 - Add back support for dot-delimited GitVersion outputs/variables
  • Loading branch information
arturcic authored Dec 10, 2024
2 parents c18c731 + 70264be commit 26a89e5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/tools/libs/gitversion.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ class GitVersionTool extends DotnetTool {
}
this.buildAgent.setOutput(name, value);
this.buildAgent.setOutput(`GitVersion_${property}`, value);
this.buildAgent.setOutput(`GitVersion.${property}`, value);
this.buildAgent.setVariable(name, value);
this.buildAgent.setVariable(`GitVersion_${property}`, value);
this.buildAgent.setVariable(`GitVersion.${property}`, value);
} catch (_error) {
this.buildAgent.error(`Unable to set output/variable for ${property}`);
}
Expand Down
Loading

0 comments on commit 26a89e5

Please sign in to comment.