Cannot update PATH env on Jenkins node

Hello, this is my first post here, bare with me if I’m not following rule

I need help figuring out why I’m unable to update PATH environment variable on Jenkins node

I installed Ansible and now when I run my Jenkins pipeline it fails because it cannot locate Ansible binaries and I need to update PATH var. When I do that from the Jenkins node config page and then check system information page of Jenkins node I still see the default value for PATH.

I also did search for an answer in this forum before posting.

Jenkins: 2.452.4
OS: Linux - 5.15.0-1065-gcp
Java: 17.0.12 - Ubuntu (OpenJDK 64-Bit Server VM)

When you modify the PATH by setting it on the node config page this will only affect newly started builds. This will not be shown on the system settings page of the node. What you see there are the env variables how they were when you started the agent.

thanks @mawinter69 I just tested and seems to be working. I wish I can see the updated PATH env in system info page for Jenkins node otherwise it’s misleading if var is being overridden or not.