[Resolved] - Stylus variables not applying at build time in CI/CD pipeline (Ubuntu VM)



  • Hey guys! I was wondering if anyone has seen this before?

    If I build my project locally on my machine it builds as expected and the variables are applied. However when I build using a VM for CI/CD purposes, the variables do not get applied, but does not error. The build proceeds and deploys, however visually its lacking; due to the variables not applying.

    • Here is a screenshot of the css after CI/CD has deployed the code.
      0_1539896995066_Screenshot 2018-10-18 at 22.05.43.png

    • Here is a screenshot of the css after I build locally and manually deploy the code.
      0_1539897122045_Screenshot 2018-10-18 at 22.11.53.png

    Environment Version

    • Local Machine Info
      0_1539897425516_Screenshot 2018-10-18 at 22.16.42.png

    • VM Info
      0_1539899227020_Screenshot 2018-10-18 at 22.46.41.png

    • CI/CD
      Done via Gitlab using Docker containers.



  • [FIX]

    The git repo actually had a cached folder with different casing to local directory.
    Running the command git delete cached folder command:

    git rm -r --cached myFolder
    

    and then pushing up resolved this issue.