In this post, we will be configuring Jenkins to execute the PowerShell scripts on Windows. We gonna use Jenkin’s PowerShell plugin to achieve this.
Jenkins PowerShell Plugin
Integrates with PowerShell by allowing you to directly write PowerShell scripts into the text box in Jenkins. Other than that, this plugin works pretty much like the standard shell script support.
We gonna use this Jenkins PowerShell Plugin
Install PowerShell Plugin In Jenkins
Login to Jenkins and navigate to Manage Jenkins > Manage Plugins.
Click on the Available tab and Enter PowerShell in the filter box. Select the plugin showing by name PowerShell Plugin. Click on Install without restart. upon successful installation, the plugin will come under installed plugin selection in Jenkins shown in the below image.
Now we can use it in a Jenkins job.
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.