Skip to content

Fix feature branches build by ignoring templates that are executed only in master

Gabriel Mazetto requested to merge fix-build-branch into master

After 2b7019de got merged, and because how we are bypassing some parts of the build in feature branches, this template was trying to use something that is not available to it.

Based on the pattern we were using, that should have been ignored on the botton of the config file, so it would only ever be rendered when it has the required variables.

Here is an example of how it breaks:

https://gitlab.com/eggshell/www-gitlab-com/-/jobs/186998955

error  public/upcoming-releases/template.html
undefined local variable or method `direction' for #<#<Class:0x00005605c74a6e38>:0x00005605c8f28810>
/builds/eggshell/www-gitlab-com/source/upcoming-releases/template.html.md.erb:13:in `block in singleton class'
/builds/eggshell/www-gitlab-com/source/upcoming-releases/template.html.md.erb:-8:in `instance_eval'
/builds/eggshell/www-gitlab-com/source/upcoming-releases/template.html.md.erb:-8:in `singleton class'
/builds/eggshell/www-gitlab-com/source/upcoming-releases/template.html.md.erb:-11:in `__tilt_47291356393260'
...

Merge request reports