We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73e518e commit 08d864fCopy full SHA for 08d864f
src/job.ts
@@ -30,8 +30,9 @@ export class Job {
30
this.stage = jobData.stage || ".pre";
31
this.scripts = [].concat(jobData.script || []);
32
33
- this.beforeScripts = [].concat(jobData.before_script || globals.before_script || []);
34
- this.afterScripts = [].concat(jobData.after_script || globals.after_script || []);
+ const ciDefault = globals.default || {};
+ this.beforeScripts = [].concat(jobData.before_script || ciDefault.before_script || globals.before_script || []);
35
+ this.afterScripts = [].concat(jobData.after_script || ciDefault.after_script || globals.after_script || []);
36
this.allowFailure = jobData.allow_failure || false;
37
this.variables = jobData.variables || {};
38
}
0 commit comments