diff --git a/lib/interface/cli/helpers/validation.js b/lib/interface/cli/helpers/validation.js index d2995c8bf..4ce318f06 100644 --- a/lib/interface/cli/helpers/validation.js +++ b/lib/interface/cli/helpers/validation.js @@ -24,6 +24,7 @@ function _getPipelineName(filename) { } async function validatePipelineSpec(data) { + const specTemplate = _.get(data, 'spec.specTemplate'); const steps = _.get(data, 'spec.steps'); const stages = _.get(data, 'spec.stages'); const yamlObj = {}; @@ -36,6 +37,9 @@ async function validatePipelineSpec(data) { if (stages) { yamlObj.stages = stages; } + if (specTemplate) { // CR-6414 Using specTemplate - skip check spec/stages - they are not used + return { valid: true, message: 'Using specTemplate' }; + } const validatedYaml = yaml.safeDump(yamlObj); const result = await sdk.pipelines.validateYaml({ yaml: validatedYaml, outputFormat: 'lint' }); let message; diff --git a/package.json b/package.json index 72d62b584..2d90d913f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.78.1", + "version": "0.78.2", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,