How To Run Powershell Scripts In Jenkins

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.

Jenkins PowerShell Plugin

 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.

jenkins execute powershell script

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.

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
DMCA.com Protection Status
0
Would love your thoughts, please comment.x
()
x