Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9109625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:05:22+00:00 2026-06-17T03:05:22+00:00

Is there any way to push successfully built feature branches to another branch? I’d

  • 0

Is there any way to push successfully built feature branches to another branch?

I’d like to have something like that:

Git repository (Gitorious/GitHub whatever). Branches:

  • master (current project’s code)
  • quality-assurance (branche where code waits for QA)
  • feature-branches (many remote branches, where devs can develope their features)

Developer should have only read access to master and read/write to his feature branches
QA read/write quality-assurance branch
TeamCity – read/write master, quality-assurance, read only to feature-branches

And now I would like to have a workflow like this:

  1. Developer pulls code from master branch.
  2. Developer creates feature-branch-A.
  3. Developer pushes changes to remote feature-branchA
  4. TeamCity monitors feature branches
  5. TeamCity triggers build and tests on each commit.
  6. TeamCity pushes changes to quality-assurance branch if build was successful
  7. QA team checks the code (maybe runs some other tests, integrity tests)
  8. If QA decides that everything is OK, they push changes to master branch.

i don’t know if that step with QA is necessary and maybe each feature branch after successful build and tests should be merged with master.

Firstly I would like to know: does it makes sense? I’m just starting with CI and I don’t know if it will works.

Secondly, if this workflow is correct, I would like to know how to configure TeamCity to do something like that and what if there would be some kind of conflict or where something could goes wrong.

Recently I watched presentation about Git+Jenkins+Gerrit where I saw something similar, but for .NET development, I personally prefer TeamCity, but if it’s much easier to do that with Jenkins, I change my mind.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:05:23+00:00Added an answer on June 17, 2026 at 3:05 am

    We have implemented a workflow with the same goals as this using github (although the implementation is slightly different) and whilst its possible it involves a bit of setup sure to some issues with teamcity. I have another answer to a similar question here

    Our solution basically involves each dev having their own fork of the main repository, which they have read and write rightsa and pull rights from the main (green) repository. Devs work on branches (one per story, shortlived), which are built by team city when they push to their personal fork.

    Once a dev is ready to merge their changes in to the master they submit a pull request and have code reviewed then finally merge with their master branch. they then push their master bramnch to their personal fork.

    If this build is successful and all tests pass (we also deploy to azure at this point, then run tests against the deployment) then the master branch is pushed to the green repository by the team city build agent.

    This push must be a fast forward or the push is rejected (this solves any potential issues with automated merging, which fills me with dread)

    You could easily extend this to have devs branches push to QA repositories and QA do the commit to the build server which triggers the push to green (or have QA have the rights to push to green).

    The teamcity setup can be a bit of a pain, as you need to chain things with snapshot dependencies, and this inhibits the ability to use templates and means you need at least 2 build configs per dev (we have 4 to deal with the deploying to azure and running tests against azure) so if you had a lot of devs this might be a pain to manage. Ideally you shouldn’t need to do this but due to issues in teamcity that are still unresolved you can’t always make the build fail fast if the tests fail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way I could make the Would you like to enable push
Is there any way to implement publish subscribe push notification in Android ? At
Is there any way in Notepad++ (or even with another tool) to change the
Is there any way I can set a formatter on models that will convert
Is there any way to achieve compiling Node.js scripts as native code, like Hip-Hop
Is there any way to push elements onto the end of a range without
is there any way i can make a uibutton push a nib in my
Is there any way to ignore a directory when you push remotely? The catch
When a push notification is received, is there any way to make the sound
Is there any way using apn_on_rails to push Newsstand notification? i.e. Push this kind

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.