Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - Execute Shell as a post build action

Tags:

jenkins

I'm trying to use the "Execute shell" from the 'build action' as a post-build task. Is that possible?

like image 322
Shizzle Avatar asked Jul 22 '16 10:07

Shizzle


People also ask

How Jenkins execute shell script as post build action?

I think you are looking for PostBuild Script Plugin. After install this plugin, you can add post-action "Execute Shell" by following these steps: Add post-build action -->Execute a set of scripts --> Add build Step --> Execute Shell.

How do I run a Jenkins post build script?

When you configure your jenkins job there is a section where you can specify post build actions. If this plugin is not visible then you need to download it. After that you can specify the script or the contents of the script. Click on apply and run the job.


1 Answers

I think you are looking for PostBuild Script Plugin. After install this plugin, you can add post-action "Execute Shell" by following these steps:

Add post-build action -->Execute a set of scripts --> Add build Step --> Execute Shell.

enter image description here

like image 154
mainframer Avatar answered Sep 30 '22 23:09

mainframer