Search code examples
jenkinsjenkins-pluginspost-build-eventpost-build

Jenkins: How to execute powershell script after successful build


I want to execute a powershell script (PS) upon successful build in Jenkins. This PS script basically deploys the application to web server. I see there are two plugins available Hudson Post Build Task and PostBuildScript Plugin to run post deployment scripts.

Can I use any one of these two? Any recommendation of one over other?

Also both plugins has a shell script option. Is that powershell script?


Solution

  • Actually, there's also a third... the one I've used and the best suited for your situation is probably the PowerShell Plugin