---
title: "Comment by Keshav Singh N on \"Jenkins Agents | Master & Agent (Slave) Nodes\" | Hashnode"
description: "But how do you fix the error from within the pipeline?"
url: "https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12/comment/6467576e7bd6d2e2dc873c43"
---

[Discussion](https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12)

Comment [Jenkins Agents | Master & Agent (Slave) Nodes](https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12)

[Keshav Singh N](https://hashnode.com/@Kessingh07)

[May 19, 2023](https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12/comment/6467576e7bd6d2e2dc873c43)

But how do you fix the error from within the pipeline?

[Sneha K S](https://hashnode.com/@snehaks)

[May 19, 2023](https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12/comment/6467576e7bd6d2e2dc873c43#reply-646764647bd6d2e2dc873e8c)

Hi Keshav, I haven't fixed the error from within the pipeline. I have fixed the error by running those commands in the agent node.

[Keshav Singh N](https://hashnode.com/@Kessingh07)

[May 19, 2023](https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12/comment/6467576e7bd6d2e2dc873c43#reply-646765adeb43c7e4ebd01645)

Yes I got that , but if i need to automate this process within the pipeline?[Sneha K S](https://hashnode.com/@snehaks)
