How to change workspace and build record Root Directory on Jenkins?

前端 未结 8 1880
野趣味
野趣味 2020-11-29 05:35

I would like Jenkins\' data to be written to drive \"E:\" since this is the large drive on the server. Jenkins itself is installed on \"C:\".

How do I do that?

8条回答
  •  天涯浪人
    2020-11-29 06:25

    The variables you need are explained here in the jenkins wiki: https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties

    The default variable ITEM_ROOTDIR points to a directory inside the jenkins installation. As you already found out you need:

    • Workspace Root Directory: E:/myJenkinsRootFolderOnE/${ITEM_FULL_NAME}/workspace
    • Build Record Root Directory: E:/myJenkinsRootFolderOnE/${ITEM_FULL_NAME}/builds

    You need to achieve this through config.xml nowerdays. Citing from the wiki page linked above:

    This used to be a UI setting, but was removed in 2.119 as it did not support migration of existing build records and could lead to build-related errors until restart.

提交回复
热议问题