create action for GRM (2)

This commit is contained in:
Artur Stolear
2020-02-08 10:40:14 +02:00
parent b677d43869
commit 632a7fdad0
17 changed files with 832 additions and 30 deletions

View File

@@ -2,6 +2,7 @@ import { IBuildAgent, TYPES, SetupOptions } from "../../core/common";
import { IGitReleaseManagerTool, GitReleaseManagerTool } from "../../tools/gitreleasemanager/gitreleasemanager-tool";
import container from "../../core/ioc";
import { Settings } from "../../tools/gitreleasemanager/settings";
container.bind<IGitReleaseManagerTool>(TYPES.IGitReleaseManagerTool).to(GitReleaseManagerTool);
@@ -29,6 +30,10 @@ export async function create() {
buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
const settings = Settings.getCreateSettings(buildAgent);
await gitReleaseManagerTool.create(settings);
buildAgent.setSucceeded("GitVersionManager created release successfully", true);
} catch (error) {
buildAgent.setFailed(error.message, true);