Reputation: 2251
I would like to run a task (stop a running vm machine) before Jenkins starts the check-out.
The reason is: VM blocks access to some files I have to update via subversion.
Is this possible?
Upvotes: 1
Views: 1925
Reputation: 9503
There are two plugins for controlling virtual machines, depending on whether you are using VirtualBox or VMWare.
I'm quite sure you can configure the pre-build step to be "Suspend" as shown in the images, at least for VMWare.
Upvotes: 1
Reputation: 6204
Have a look at How do I trigger another job from hudson as a pre-build step?. I think this has been asked before there.
Upvotes: 0
Reputation: 32597
Edit your project and set: Configure M2 Extra Build Steps --> Execute shell --> Type in whatever you'd like to do. For example:
# Wipe the local repository before each build.
rm -rf $WORKSPACE/.repository
Upvotes: 0