Jenkins – Execute Shell Script after post build in Jenkins

Jenkinsjenkins-pluginsshell

I am trying to execute a shell script if either the build pass or fails after post-build in Jenkins. I cannot see this option in post build to execute some shell script except for running a target.

Best Answer

Very easily done with Post build task plugin.

Jenkins - "Post build task" option