Tobias Schittkowski
Tobias Schittkowski

Reputation: 2251

Run a task before svn check-out

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

Answers (3)

Sagar
Sagar

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

Torsten
Torsten

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

carlspring
carlspring

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

Related Questions