File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export class Job {
41
41
// Parse extends
42
42
if ( jobData . extends ) {
43
43
const extendList = [ ] . concat ( jobData . extends ) ;
44
- const deepExtendList : any [ ] = [ ] ;
44
+ const deepExtendList : any [ ] = [ { } ] ;
45
45
extendList . forEach ( ( parentJobName ) => {
46
46
if ( ! globals [ parentJobName ] ) {
47
47
console . error ( `${ c . red ( `'${ parentJobName } ' could not be found` ) } ` ) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export class Parser {
48
48
orderedVariables . push ( orderedYml . last ( ) . variables || { } ) ;
49
49
50
50
// Parse yamls included by other ci files.
51
+ orderedYml . unshift ( { } ) ;
51
52
const includes = deepExtend . apply ( this , orderedYml ) . include || [ ] ;
52
53
for ( const value of includes ) {
53
54
if ( ! value . local ) {
@@ -59,6 +60,7 @@ export class Parser {
59
60
}
60
61
61
62
// Setup variables and "merged" yml
63
+ orderedYml . unshift ( { } ) ;
62
64
const gitlabData = deepExtend . apply ( this , orderedYml ) ;
63
65
64
66
// Generate stages
You can’t perform that action at this time.
0 commit comments