Questions tagged [build-chain]

A sequence of builds interconnected in some way or the other.

A Build Chain is specifically a Teamcity notation. As suggested by Teamcity - It is normally used to run interconnected tasks linked by snapshot dependencies. A build triggered on a configuration would trigger other dependent builds like a chain reaction.

A common scenario could be running the tests on multiple platforms or deploying the application after compilation to multiple machines.

Other scenarios could be triggering a project build when a dll in the upstream project has changed.

There are ways to achieve this in other tools such as Jenkins, Maven etc as well. A nice post on this using Anthill Pro is here.

17 questions
7
votes
1 answer

Allow/deny users from running a build configuration in Teamcity

I have a build chain of 4 build configurations, which correspond to different teams' tasks. The idea behind the configurations is this: Run the build itself Move build to staging QA approved Release Each of those configurations have different…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
5
votes
1 answer

TeamCity Build Chain configuration

I have a TeamCity project which includes 4 configurations and the build chain needs to look something like this: Build which can be triggered manually and executes .bat scripts that compiles a bunch of artifacts for the Deploy and TEST to pick…
3
votes
0 answers

Teamcity Build Chain Optional Builds

I have a TeamCity project which includes 4 configurations in the build chain like this. |----> Build A -| Prebuild-| |----> Test Results |----> Build B -| In the Prebuild configuration based on tags in the Pull…
2
votes
0 answers

Set default changes/revisions to TeamCity build configuration to the changes in the latest build from a snapshot dependency

I have a build chain in TeamCity that goes A -> B -> C. However, I'd like to also be able to run C without rerunning A and B (by default), even if there are changes available. I can check "Do not run new build if there is a suitable one", but then…
eberleant
  • 113
  • 1
  • 7
2
votes
0 answers

How to configure a build chain for smoke tests without common artifacts, VCS roots, or triggering builds up the chain?

I am running TeamCity 2018.1. I can't seem to find the answer to this scenario anywhere. I have found similar questions, but they don't address exactly what I'm trying to achieve: here and here I want the following flow in TeamCity 1 -> 2.1 -> 3 1…
elimidora
  • 21
  • 4
2
votes
0 answers

Scaling TeamCity build chains

We have many projects that are treated, built and deployed the same way and we want to have a unified TeamCity build chain for all of them. Our build chain should contain: Compilation and testing for pull requests and develop branch. SonarQube…
RecuencoJones
  • 2,747
  • 3
  • 22
  • 21
2
votes
1 answer

How to build a project in teamcity after multiple other builds have finished and not trigger the dependency chain?

My questions is related to Trigger subsequent build once after multiple parallel builds in TeamCity but I have hit a problem so posting it here. Below is my setup. I am trying to create a chain so that when I run A, the complete chain runs. A ( Root…
ygsh
  • 33
  • 5
1
vote
1 answer

How can settings be reused across several builds in a TeamCity build chain?

There's a TeamCity build chain consisting of several builds such that some of them need to run in parallel: Build 1 runs Then builds 2.1 and 2.2 run in parallel Then build 3 runs Then builds 4.1 and 4.2 run this is quite easy to setup. It so…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
1
vote
2 answers

Why do build configuration not run in parallel for a build chain in TeamCity?

All documentation on build chains on the TeamCity and also their blog postings deals with simples setup that don't expose the more complex setups that you may encounter in real life which brings me to the following question. I have the need for a…
Sauraus
  • 95
  • 13
1
vote
0 answers

TeamCity Build Chain Error - FileOrFolderNotFound

I have built a 2 steps build chain in TeamCity. 1. step builds solution and creates artifacts on disk. Second step deploys to our remote IIS. Everything works fine except this error occuring on every second build: Error: Object of type 'contentPath'…
goran85
  • 503
  • 5
  • 19
0
votes
1 answer

executing teamcity build configurations on the fly via external argument

I have 2 different build configurations in team-city. Each has it's own build chain. The first just builds the product. The second also builds the product but also builds and run unit tests. We are invoking them manually depending on our needs. Now…
libxelar.so
  • 473
  • 4
  • 16
0
votes
1 answer

VSTS build triggered twice with each push

I have a chained 2 builds scenario setup in VSTS. I have a CI build, called 'Sync VSTS to GitHub' which runs two steps: A powershell command which pushes the changes from that commit to GitHub. Trigger another build, which compiles the solution,…
Bartosz
  • 4,406
  • 7
  • 41
  • 80
0
votes
1 answer

How to trigger a build within a build chain after x days?

I am currently using Teamcity to deploy a web application to Azure Cloud Services. We typically deploy using powershell scripts to the Staging Slot and thereafter do a manual swap (Staging to Production) on the Azure Portal. After the swap, we…
Ahmad
  • 22,657
  • 9
  • 52
  • 84
0
votes
1 answer

Running of team city build in the loop

I have build configuration in TeamCity with automated tests. I want to run this build configuration in the loop: when one build was finished, new build is started. I can not configure 'Finish Build Trigger', because it is necessary to create…
user1590561
  • 583
  • 2
  • 6
  • 17
0
votes
1 answer

Can teamcity fail a build if a suitable dependency is not found?

In TeamCity I have setup a build chain where each environment is dependent upon the builds in the previous environment must be suitable and successful. However, I would like to fail the build if a suitable build dependency is not found. The…
Sandman
  • 51
  • 1
  • 1
  • 7
1
2