Jenkins: how can I clean the workspace except the vagrant directory? -
i have following setup:
i use workspace cleanup plugin in jenkins clean workspace before each build. during build-process trigger vagrant up
setup vm phpunit tests:
$ vagrant $ ./runtest.sh $ vagrant suspend
now when re-build project, vm gets build new 1 instead of resuming previous one. guess because of cleanup plugin removing .vagrant
-directory, therefore making vagrant think should build new machine instead of resuming previous one.
now have configured plugin exclude following patterns , have 'apply pattern on directories'-checkbox checked:
**/*.vagrant .vagrant .vagrant/ ./.vagrant ./.vagrant/
but still .vagrant
-directory gets deleted workspace on each new build, spawning brand new vm each time...
does know how can exclude .vagrant
-directory workspace cleanup plugin?
turned out having logical error. did first task checkout , hard-reset specific branch master. step deleted .vagrant
-directory after cleanup-task did expected do.
Comments
Post a Comment