Jenkins build outside of workspace

后端 未结 2 927
傲寒
傲寒 2021-01-18 10:28

I am new to Jenkins/Hudson and am trying to migrate a C make-based project from buildbot. For legacy reasons, the build system is hard-coded to build outside of the versione

相关标签:
2条回答
  • 2021-01-18 10:48

    To answer my own question: there is indeed an option in Jenkins git plugin to check out to a local subdirectory instead of the root of the workspace. With the git plugin, click on the Advanced button and fill in the field "Local subdirectory for repo (optional)".

    0 讨论(0)
  • 2021-01-18 10:53

    I don't find the option that djs mentioned, but you can specify a different work directory:

    1. Configure job
    2. Extended Project settings
    3. Use custom work space

    This can be set to everywhere you want, also the workspace of a different job.

    0 讨论(0)
提交回复
热议问题