diff --git a/messages/package_version_list.md b/messages/package_version_list.md index 43af0bbd..978ae556 100644 --- a/messages/package_version_list.md +++ b/messages/package_version_list.md @@ -154,6 +154,6 @@ Created By Language -# endToEndBuildDuration +# endToEndBuildDurationInSeconds -End To End Build Duration +End To End Build Duration In Seconds diff --git a/schemas/package-version-report.json b/schemas/package-version-report.json index 7ea9d93a..877ae87a 100644 --- a/schemas/package-version-report.json +++ b/schemas/package-version-report.json @@ -192,7 +192,7 @@ "AncestorId": { "type": ["string", "null"] }, - "EndToEndBuildDuration": { + "EndToEndBuildDurationInSeconds": { "type": "number" } }, diff --git a/src/commands/package/version/report.ts b/src/commands/package/version/report.ts index 87c8b26c..103ade72 100644 --- a/src/commands/package/version/report.ts +++ b/src/commands/package/version/report.ts @@ -165,10 +165,6 @@ export class PackageVersionReportCommand extends SfCommand 0; } + + displayRecords.push({ + key: pvlMessages.getMessage('endToEndBuildDurationInSeconds'), + value: record.EndToEndBuildDurationInSeconds === null ? '' : record.EndToEndBuildDurationInSeconds?.toFixed(1), + }); } // Always append code coverage column label ar the end diff --git a/test/commands/package/versionReport.test.ts b/test/commands/package/versionReport.test.ts index c300d003..eef172ec 100644 --- a/test/commands/package/versionReport.test.ts +++ b/test/commands/package/versionReport.test.ts @@ -59,6 +59,7 @@ const pkgVersionReportResultModified: PackageVersionReportResultModified = { Tag: '', ValidationSkipped: false, Version: '0.0.0.0', + EndToEndBuildDurationInSeconds: 299.0, }; const pkgVersionReportResult: PackageVersionReportResult = { @@ -105,6 +106,7 @@ const pkgVersionReportResult: PackageVersionReportResult = { Tag: '', ValidationSkipped: false, Version: '0.0.0.0', + EndToEndBuildDurationInSeconds: 299.0, }; describe('package:version:report - tests', () => {