---
title: "Discussion on \"Jenkins Agents | Master & Agent (Slave) Nodes\" | Hashnode"
description: "Discussion on \"Jenkins Agents | Master & Agent (Slave) Nodes\". I have deployed a Node JS application on the agent node by triggering the build job on the Master node."
url: "https://hashnode.com/posts/jenkins-agents-master-agent-slave-nodes/64660b827d47858187de9e12"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Jenkins Agents | Master & Agent (Slave) Nodes](https://snehaksuresh.hashnode.dev/jenkins-agents-master-agent-slave-nodes?utm_source=hashnode&utm_medium=feed)

I have deployed a Node JS application on the agent node by triggering the build job on the Master node.

May 18, 2023 · 6 min read · snehaksuresh.hashnode.dev  
Read the article

-   [#devops](https://hashnode.com/tag/devops)
-   [#jenkins](https://hashnode.com/tag/jenkins)
-   [#90daysofdevops](https://hashnode.com/tag/90daysofdevops)
-   [#trainwithshubham](https://hashnode.com/tag/trainwithshubham)

## Written by

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

@snehaks · Bengaluru, India

  
[View profile](https://hashnode.com/@snehaks)

Cloud DevOps Engineer

DevOps Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[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)
