# Jenkin Job Setup Question

**URL:** <https://community.jenkins.io/t/jenkin-job-setup-question/1819>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [March 15, 2022, 7:18pm UTC](https://community.jenkins.io/t/jenkin-job-setup-question/1819 "2022-03-15T19:18:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![conanl](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@conanl](https://community.jenkins.io/u/conanl)\
**Post date:** [March 15, 2022, 7:18pm UTC](https://community.jenkins.io/t/jenkin-job-setup-question/1819/1 "2022-03-15T19:18:27Z")

</div>

Hi,  
I have 2 windows nodes and have to run different set of commands in these nodes. I am using master/slave concept to connect to the remote VM via Jenkins.  
In the single job , how can I do that?

**VM#1 :-**  
cd c:\temp1  
rm -f \*.log

**VM#2 :**  
cd c:\temp2  
rm -f \*.temp

Version :- Jenkins 2.339

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 15, 2022, 7:37pm UTC](https://community.jenkins.io/t/jenkin-job-setup-question/1819/2 "2022-03-15T19:37:05Z")

</div>

Hi there,

As a reminder, the term “slave” to refer to an agent has been deprecated since 2016. Please refer to [On Jenkins Terminology Updates](https://www.jenkins.io/blog/2020/06/18/terminology-update/) for more details. We request you update your post.

Thanks,  
Gavin Mogan

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 15, 2022, 7:39pm UTC](https://community.jenkins.io/t/jenkin-job-setup-question/1819/3 "2022-03-15T19:39:04Z")

</div>

> [@conanl](#):
>
> In the single job , how can I do that?

```auto
pipeline {
  agent none
  stages {
    stage('VM#1') {
      agent { label: 'Vm1' }
      steps {
        bat("deltree /y c:\temp1\*.log") # or something, i'm not a windows power user
      }
    }
    stage('VM#2') {
      agent { label: 'Vm2' }
      steps {
        bat("deltree /y c:\temp2\*.log") # or something, i'm not a windows power user
      }
    }
  }
}

```
