Reputation: 3201
The scenario is - I have a job A which runs my ant script and packages the artifact's for me.
I am also using parametrized Triggered plug in to Trigger my "Job B" which will deploy my artifact on remote machine.
The job A is working fine and also Job B.
The tasks that i have to perform with Job B are
I browsed various plug ins for the same but no one is allowing me to run shell script after , "SCP to remote machine" which is present in Post build action.
I would like to execute the same sequence, however if you guys have any other suggestions please share.
Thanks in Advance.!
Upvotes: 10
Views: 62871
Reputation: 3201
To solve my query i used Jenkins SSH Plugin. This provides a configuration tab where i can add multiple hosts and after that used them in my job level configuration.
you get privilege to execute shell script on remote host as pre-build step or post build step.
Upvotes: 4
Reputation: 27485
As part of Publish Over SSH Plugin, you can execute a script after the files had been copied over.
Upvotes: 17