Home > front end >  "ifconfig" or "ip a" not found when running jenkins script
"ifconfig" or "ip a" not found when running jenkins script

Time:09-29

I have a task created in Jenkins where a Linux bash script should be runned. There is an ipconfig inside the script to capture the ip address. The problem is when running manually in a linux terminal the commands works fine but inside Jenkins I am getting command not found. During my research about the problem, I changed to ip a command but had the same issue. Do you have an idea why this happens with jenkins?

Thanks

CodePudding user response:

It could be that it wasnt in the $PATH. You could try replacing each instance with the absolute path.

  • Related