This Question is Assumed Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
5 Replies Last post: Apr 4, 2008 4:22 PM by Yegor Yarko  
Dave Koenig Newbie 22 posts since
Mar 26, 2008
Currently Being Moderated

Mar 26, 2008 2:24 AM

Build Dependencies

Hello All.

 

I'm new to TeamCity and am starting to get the system figured out.  A major roadblock I have now is chaining a bunch of build togethers.  My problem is like this:

 

I want to start one build that is triggered off of a perforce change.  When that build is successfully completed I want to fire off 3 other builds.  If the initial build fails, I want to fire it off again until it's fixed.  Once all the other three builds are complete, then and only then, do I want the initial build to start polling perforce to see if it should start again.  I CANNOT have the initial build building while the other three are building.  It MUST wait until the other three are complete.

 

I'm pretty sure I could figure a solution out if Team City supported multiple dependencies.  Ie Build B and Build C are dependent on A, which is in turn dependent on both Build B and C...but it doesn't seem to me Team City supports this.

 

Does any one have a solution, or any ideas?  Any help would be most appreciated.

 

Thanks

Dave

Pavel Sher JetBrains 2,361 posts since
Mar 6, 2008
Currently Being Moderated
Mar 27, 2008 12:01 AM in response to: Dave Koenig
Re: Build Dependencies

Hello,

 

You're right, dependencies in TeamCity are limited at the moment, you can configure dependency triggering (i.e. finishing of one build triggers another) or you can configure dependencies by artifacts (one build can use artifacts of another build). You can also trigger build from your build script (via HTTP request). As for not running a build while other three builds are running I think this could be done via plugin only.

 

We are going to address such complex builds in the next version of TeamCity. Right now could you please submit your use case to our tracker?

 

--

Pavel Sher

Pavel Sher JetBrains 2,361 posts since
Mar 6, 2008
Currently Being Moderated
Mar 28, 2008 9:33 AM in response to: Dave Koenig
Re: Build Dependencies

Use this URL: http://jetbrains.net/tracker/workspace/TW

If you had an account in our JIRA then use the same login/password to login to this new tracker

 

--

Pavel Sher

aebaugh Newbie 10 posts since
Mar 21, 2008
Currently Being Moderated
Apr 3, 2008 5:23 AM in response to: Pavel Sher
Re: Build Dependencies

I'm in a similar situation. It is like this:

Config A - build

Config B - deploy

Config C - test

 

If Config C is running some tests, we definitely do not want Config B to redeploy a new build from Config A.

 

Just a thought for a workaround. I know there is a way to "pause" triggering when you are editing the Build Triggering settings. Is this possible to do in a programmatic way? By HTTP request, for example. That way I could have something like:

 

Config A - build

Config B - deploy

Config pre-C - pause Config B triggering

Config C - test

Config post-C - resume Config B triggering

Yegor Yarko JetBrains 1,834 posts since
May 5, 2004
Currently Being Moderated
Apr 4, 2008 4:22 PM in response to: aebaugh
Re: Build Dependencies

Hi!

 

It seems that what you need to limit simultaneously running builds is addressed by http://jetbrains.net/tracker/issue/TW-3798 about shared resource.

 

Please vote/watch the issue if it can solve your problem.

 

--

Best regards,

 

Yegor Yarko

Project Manager

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

More Like This

  • Retrieving data ...