How do I override the Jenkins onStarted functionality to run a build script on the slave VM?

My team is currently creating a build script that will need to run at the beginning of each Jenkins build.  In the past, we have created a plugin, which extends the BuildWrapper class and overrides the onStarted functionality.  I am trying to create a new plugin that works similarly, but instead runs on the slave virtual machine instead of the master.  How would I go about this?  Any ideas or examples would be appreciated.




Please sign in to leave a comment.