Skip to content

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
0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments