continuous integration - How to configure Teamcity to build a project which is a plugin of a different project? -


i have project plugin opensource system. in order run ci build plugin, needs installed existing instance of main opensource system. have got working, however, install procedure main system long , complex, build takes forever. awkward set checking out plugin git happens first, whereas needs happen after main system has been put in place right directories there. solution have right use shell script install , ant task build, ignoring built-in vcs altogether. feels hacky, though.

two solutions come mind:

  1. have persistent install of main system in build directory, plugin added @ start of build, , removed @ end. didi ith jenkins , worked ok, using teamcity.
  2. have sort of parent-chid relationship between 2 ci projects, main 1 built , triggers plugin one, built within it. allow main 1 rebuilt whenever needs , avoids awkwardness of keeping install of main system clean between builds.

however, don't know enough teamcity know if possible. has ever done before?

for solution number 2 can try use "build triggers" configuration, "finish build trigger" option should resolve parent-child relationship well.

in tc, go plugin's build configuration, in "configuration steps" section select "build triggers" (number 5), select "add new build trigger" , configure "finish build trigger" selecting main system's build configuration.

to use parent directory in child one, you'll need use "artifact dependency" (see "dependencies" section in "configuration steps", maybe setting snapshots between build configurations too.

artifact dependencies: artifact dependencies provide convenient means use output (artifacts) of 1 build in build. when artifact dependency configured, necessary artifacts downloaded agent before build starts.

snapshot dependencies: setting dependency of build (e.g. build b) on other build's (build a's) sources, can ensure build b start after 1 depends on (build a) run , finished

configuring finish build trigger: finish build trigger triggers build of current build configuration if build of selected build configuration finished


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 -