hudson - How to set common workspace dir for multiple jobs in Jenkins? -


i'm trying migrate hudson jenkins , faced problem. of test jobs (huge number) using build -> invoke ant parameter build file relative path , same of them. should use same workspace directory.

i've set in workspace root directory in jenkins configure system.

example:

  • real run.xml file location: c:\var\lib\jenkins\workspace\trunk\eb\run.xml
  • workspace root directory: c:\var\lib\jenkins\workspace\trunk\
  • build file parameter (in job): eb\run.xml

build fails with:

error: unable find build script @ c:/var/lib/jenkins/workspace/trunk/workspace/run bd completedpath (firefox) ~regression/eb/run.xml

as see jenkins adds job name anyway, path incorrect , build fails. if set absolute paths works fine, it's illogically , large number of copy-paste work.

please sort out without modifying jobs, thanks!

see shared workspace plugin:

this plugin allows share workspaces jenkins jobs same scm repos.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -