Jenkins String comparison in bash. [[: not found

Hello friends, Let’s talk about another issue I got today. I don’t know Why I wasted a few hours solving this. But I’m really happy that I finally could find the solution and no give-ups. So, this is just a small thing. Maybe you have used bash scripts before, maybe you don’t. However, remember to define the following line before starting to type your script.


Remember! this line should be clearly identified at the top of your script. Else you will get the above title error when you use if conditions with your script. However, I started to follow Jenkins for my CI/CD process. I hope I will get more issues with that later. Surely, I will bring each error I get. Stay with us. #kdjguru