diff --git a/lib/logic/entities/StepType.js b/lib/logic/entities/StepType.js index 44ace7e68..d183c57ee 100644 --- a/lib/logic/entities/StepType.js +++ b/lib/logic/entities/StepType.js @@ -14,12 +14,13 @@ class StepType extends Entity { this.stage = this.info.metadata.stage; this.created = this.info.metadata.created_at ? new Date(this.info.metadata.created_at) : undefined; this.updated = this.info.metadata.updated_at ? new Date(this.info.metadata.updated_at) : undefined; + this.metrics = this.info.metrics || {}; this.defaultColumns = ['name', 'version', 'category', 'official', 'visibility', 'stage', 'updated', 'created']; this.wideColumns = this.defaultColumns; } static fromResponse(response) { - return new StepType(_.pick(response, 'version', 'kind', 'metadata', 'spec')); + return new StepType(_.pick(response, 'version', 'kind', 'metadata', 'spec', 'metrics')); } } diff --git a/package.json b/package.json index 8b8072c2c..895667702 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.68.16", + "version": "0.68.17", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,