From 5bed0addee772281d08e76ef4a90ae2d709ad5a6 Mon Sep 17 00:00:00 2001 From: Joey Piccola Date: Thu, 3 Feb 2022 11:31:32 -0700 Subject: [PATCH 1/2] add build info props and parameterize vcstype --- src/commands/build-information.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/commands/build-information.yml b/src/commands/build-information.yml index c8ba80e..5cfeff0 100644 --- a/src/commands/build-information.yml +++ b/src/commands/build-information.yml @@ -79,6 +79,12 @@ parameters: [Optional] The log level. Valid options are verbose, debug, information, warning, error and fatal. Defaults to 'debug'. type: string default: "" + vcs_type: + description: | + [Optional] The type of VCS used. Defaults to 'Git'. + type: enum + default: "Git" + enum: ["Git", "TFVC"] steps: - run: name: "Push build information for << parameters.package_id >>" @@ -107,7 +113,9 @@ steps: BuildNumber: "$CIRCLE_BUILD_NUM", BuildUrl: "$CIRCLE_BUILD_URL", Branch: "$CIRCLE_BRANCH", - VcsType: "GitHub" + VcsType: "<< parameters.vcs_type >>", + VcsRoot: "$CIRCLE_REPOSITORY_URL", + VcsCommitNumber: "$CIRCLE_SHA1" } EOL From 587e03a5b647db0ff26dfc5a27c8fd7b129186d7 Mon Sep 17 00:00:00 2001 From: Joey Piccola Date: Thu, 3 Feb 2022 12:11:24 -0700 Subject: [PATCH 2/2] revert enum logic --- src/commands/build-information.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/commands/build-information.yml b/src/commands/build-information.yml index 5cfeff0..ba57192 100644 --- a/src/commands/build-information.yml +++ b/src/commands/build-information.yml @@ -81,10 +81,9 @@ parameters: default: "" vcs_type: description: | - [Optional] The type of VCS used. Defaults to 'Git'. - type: enum - default: "Git" - enum: ["Git", "TFVC"] + [Optional] The type of VCS used. Defaults to 'GitHub'. + type: string + default: "GitHub" steps: - run: name: "Push build information for << parameters.package_id >>"