Jenkins Job:
In the Jenkins Master in addition to Slave surroundings nosotros tin direct the specific node to execute build.
in around cases nosotros may required windows platform to run build.
In my previous blog- I accept explained how to setup Windows Node equally Slave, Let's setup basic chore to execute on Windows platform.
Prerequisites-
Step 1- Setup Job in addition to assign Windows node to execute build.
Sumber https://linuxhowtoguide.blogspot.com/
In the Jenkins Master in addition to Slave surroundings nosotros tin direct the specific node to execute build.
in around cases nosotros may required windows platform to run build.
In my previous blog- I accept explained how to setup Windows Node equally Slave, Let's setup basic chore to execute on Windows platform.
Prerequisites-
- Jenkins Windows node.
- In my representative i am using Linux equally Master in addition to Windows equally Slave. As inward moving-picture demonstrate below.
Step 1- Setup Job in addition to assign Windows node to execute build.
- Login to Jenkins equally Admin > New Item > Enter Item name(Win_Powershell) > Type Freestyle >OK
- On the side yesteryear side concealment select Restrict where this projection tin last run
- In the Label Expression> Windows Node name.
- In the Build steps > add > execute Windows batch ascendancy > in box type ascendancy to execute
- %SystemRoot%\system32\windowspowershell\v1.0\powershell.exe get-date > C:\Jenkinstest.txt
- Apply and Save.
Step 2- Run the laid upward in addition to banking concern lucifer output at Windows Node.
- After setting upward Project, let's run kickoff Build.
- Select Build Now
- Check laid upward logs
- Build history > direct Build Number > Console Output
- After success amount laid upward y'all Job output volition last similar this.
Basic Jenkins Job configured successfully amongst Windows Slave node. You tin customized chore script equally per your requirement.
Tidak ada komentar:
Posting Komentar