hudson - Any way to get around cloning a git submodule? -
i work on open source project. keep our production config files in separate git repository available few members of our team. repo submodule of our larger project , allows people grab , compile project without seeing our prod creds.
the problem hudson tries pull down submodule , hudson user doesn't have pull permissions on repo.
hudson.plugins.git.gitexception: error performing command: git submodule update command "git submodule update" returned status code 1: initialized empty git repository in <http://athenadev.fracturedatlas.org:5904/job/athena/ws/assembly/.git/> error: permission fracturedatlas/assembly.git denied fracturedatlas/artful.ly. fatal: remote end hung unexpectedly clone of 'git@github.com:fracturedatlas/assembly.git' submodule path 'assembly' failed @ hudson.plugins.git.gitapi.launchcommandin(gitapi.java:691)
is there "git" way around or going need re-think our strategy keeping production credentials away evildoers?
if secret repo submodule of larger repo, then... hudson should not try pull larger repo ;)
it should pull "another larger repo" identical first one, but presence of submodule.
that easy when:
- the parent repo empty , declare submodules (one "larger project", 1 "secret repo")
- the "larger project" include symlink secret repo (that way, don't have declare secret repo submodule directly within larger project, can declare in quasi-empty parent repo)
when such parent repo exists (with content limited 2 submodules), easy replicate such parent repo in order 1 included one submodule (the "larger project"), without other ("the secret repo").
, second parent repo hudson able pull from.
Comments
Post a Comment