How can I get multiple Jenkins builds to work from one local git repo?

前端 未结 4 2065
迷失自我
迷失自我 2020-12-13 18:52

I have a GitHub repo that\'s big and contains several independently build-able bits. If I configure Jenkins with a job (or two) for each of these, I end up with having to pu

4条回答
  •  孤街浪徒
    2020-12-13 19:06

    Have a look at the Clone Workspace plugin. You can either use that or configure a job to update a local repository from Github and then have all the other jobs pull from that local repo.

    This won't help with the problem that the workspaces still need the diskspace, but as far as I know there's no simple solution for that. You could either have the build steps change to a shared directory outside the workspace, but that's hacky and might break other things. Alternatively, you could use a filesystem that provides deduplication.

提交回复
热议问题