๐Ÿš€๐—” ๐—–๐—ฎ๐˜€๐—ฒ-๐—ฆ๐—ฒ๐—ป๐˜€๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐— ๐—ฎ๐˜๐˜๐—ฒ๐—ฟ๐˜€! ๐Ÿง

Recently, we faced an issue in our devops pipeline. The pipeline was designed to variabilize the Helm chart path based on the artifact location.

While the artifacts were successfully downloaded into the agent, we kept hitting the error: โ€œ๐˜Š๐˜ฉ๐˜ข๐˜ณ๐˜ต ๐˜ง๐˜ช๐˜ญ๐˜ฆ ๐˜ฏ๐˜ฐ๐˜ต ๐˜ง๐˜ฐ๐˜ถ๐˜ฏ๐˜ฅ ๐˜ช๐˜ฏ ๐˜ต๐˜ฉ๐˜ฆ ๐˜ด๐˜ฑ๐˜ฆ๐˜ค๐˜ช๐˜ง๐˜ช๐˜ฆ๐˜ฅ ๐˜ฑ๐˜ข๐˜ต๐˜ฉ.โ€ ๐Ÿค”

๐—›๐—ฒ๐—ฟ๐—ฒโ€™๐˜€ ๐˜๐—ต๐—ฒ ๐˜๐˜„๐—ถ๐˜€๐˜:

The pipeline worked flawlessly on a Windows agent.But it failed every time on an Ubuntu agent ๐Ÿง.

My Linux knowledge saved the day! ๐Ÿ’ก In Linux, ๐—ณ๐—ถ๐—น๐—ฒ ๐—ฝ๐—ฎ๐˜๐—ต๐˜€ ๐—ฎ๐—ฟ๐—ฒ ๐—ฐ๐—ฎ๐˜€๐—ฒ-๐˜€๐—ฒ๐—ป๐˜€๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ, unlike Windows.

We had a variable in yaml file like this:

chartPath: ./charts/WebGenServiceApp

But the actual published folder was named like ./๐—ฐ๐—ต๐—ฎ๐—ฟ๐˜๐˜€/WebgenServiceApp. That one uppercase letter(G) caused the failure!

๐—™๐—ถ๐˜…: Correcting the case in the variable value resolved the issue. โœ…

๐—ž๐—ฒ๐˜† ๐—ง๐—ฎ๐—ธ๐—ฒ๐—ฎ๐˜„๐—ฎ๐˜†: When deploying on Linux-based agents, always validate your file paths and variable values for case sensitivity.

๐—” ๐˜€๐—บ๐—ฎ๐—น๐—น ๐˜๐˜†๐—ฝ๐—ผ ๐—ฐ๐—ฎ๐—ป ๐—น๐—ฒ๐—ฎ๐—ฑ ๐˜๐—ผ ๐—ฏ๐—ถ๐—ด ๐—ต๐—ฒ๐—ฎ๐—ฑ๐—ฎ๐—ฐ๐—ต๐—ฒ๐˜€! ๐Ÿ› ๏ธ

#DevOps #Linux #CICD #CaseSensitivity #TechTips #PipelineDebugging #WindowsVsLinux

0
Subscribe to my newsletter

Read articles from Sheik Mohamed Syed Ali directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sheik Mohamed Syed Ali
Sheik Mohamed Syed Ali