File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
lib/interface/cli/helpers Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ function _getPipelineName(filename) {
24
24
}
25
25
26
26
async function validatePipelineSpec ( data ) {
27
+ const specTemplate = _ . get ( data , 'spec.specTemplate' ) ;
27
28
const steps = _ . get ( data , 'spec.steps' ) ;
28
29
const stages = _ . get ( data , 'spec.stages' ) ;
29
30
const yamlObj = { } ;
@@ -36,6 +37,9 @@ async function validatePipelineSpec(data) {
36
37
if ( stages ) {
37
38
yamlObj . stages = stages ;
38
39
}
40
+ if ( specTemplate ) { // CR-6414 Using specTemplate - skip check spec/stages - they are not used
41
+ return { valid : true , message : 'Using specTemplate' } ;
42
+ }
39
43
const validatedYaml = yaml . safeDump ( yamlObj ) ;
40
44
const result = await sdk . pipelines . validateYaml ( { yaml : validatedYaml , outputFormat : 'lint' } ) ;
41
45
let message ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.78.1 " ,
3
+ "version" : " 0.78.2 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments