When building only a subdirectory of a Git repo, Jenkins shows the changes of the whole repo - why? -


we migrated git, if ask stupid questions, please forgive me :-)

our git repo contains several maven projects, this

ssh://git@git.whatever.com:7999/foo/foo.git    bar1    bar2 

i have separate jenkins jobs build bar1 , bar2. prevent push bar1 triggers bar2, configured git plugin in bar2 under advanced... included regions include bar2/.* - , vice versa in bar1 job: bar1/.*

this works well, there's 1 thing nags me: changes within both jobs show changes of repo (bar1 , bar2) instead of changes of specific project.

how can configure that?

screenshot: enter image description here

i'm assuming mean commit log when refer changes, in case cannot require without custom git client or @ least custom git commit viewer script.

a single repository should in theory ever contain 1 project. otherwise using git "wrong" (using word "wrong" in loose sense git tool, using wrong impossible, there's using badly own requirements).

the way want split bar1 , bar2 folders separate git repo's. if bit modules, both required on same site, git init/clone bar1 , bar2 folders respectively each project can control them separately.

another alternative separate them out separate git repo's, create third "master" repo includes 2 other repo's sub-modules inside respective folders. use custom git hook do, make master pull , build correct folder/project/bar(x) . bit of hacky way of doing things purely sake of not having set few folders first.

basically put, can't split out commit log based on folder, without writing own custom commit viewer. need separate project multiple repo's. how bring them , automate build tasks, you. there's no doubt more ways ones mention above. case of finding best solution needs.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -