[CI]change order of includes to allow overwriting variables See merge request !1986
mentioned in issue #1869 (closed)