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 4086438
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:43:37+00:00 2026-05-20T18:43:37+00:00

I have some integration tests that get kicked off by TeamCity on a successful

  • 0

I have some integration tests that get kicked off by TeamCity on a successful build. I have had success using the TeamCity REST API in order to tag the build as passed or failed, but would actually like to mark the build status as passed or failed (in the same way builds are failed due to compilation or unit test failures).

The documentation for the REST API is pretty sparse. Is it just not possible to do this through the REST API or is it undocumented?

Clarification:

Current process is as follows:

“App” TC Build configuration actually builds the application and runs the unit tests.

“Test” TC Build configuration depends on “App” configuration completing successfully. If “App” builds successfully (no compile or unit test failures), “Test” configuration kicks off, which pulls down the build artifacts and runs the live integration tests on the application. Prior to these tests being run, “App” configuration has a status of passing, since it compiled successfully and there were no unit test failures.

What I am trying to do is to change “App” config status to failed, if the “Test” configuration failed. Currently I am merely tagging “App” as passed or failed, but the actual build status is always passing. Essentially I am trying to get the change log or history to show the red X icon for a failed build, rather than the green check mark.

“App” and “Test” are 2 separate TeamCity build configurations. Since they are separate, Build Script Interaction, as suggested by @sharma, will not do the trick, since Build Script Interaction can be used to fail/update the currently running build configuration, whereas I am trying to update/fail a separate and already completed build configuration.

Why do we have 2 separate configs and not just run the tests from the main build? Speed of course! The integration tests take up to 10 minutes to run, and we don’t want to slow down the compile cycle just because the integration tests are running.

  • 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-05-20T18:43:37+00:00Added an answer on May 20, 2026 at 6:43 pm

    So the answer to my original question, is it possible to use REST API to mark build as failed from another build configuration, is that it is not possible.

    Per TeamCity support: There is no way to change a build status after it has been finished. This is not a limitation of REST API, this is just not implemented feature of TeamCity.
    Here is a related feature request in our tracker: http://youtrack.jetbrains.net/issue/TW-2529

    (I upvoted @sharma’s answer and comments, as they were definitely informative, but ultimately not a solution to my problem.)

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

Sidebar

Related Questions

I have some integration tests that hit a webserver and verify certain functionalities. Depending
As above really, I have some integration tests that use files from a relative
We have an old asp.net application that has no unit tests, integration tests, component
I have am trying to create some integration tests with no external database dependencies
I have a class that is building some HTML using data stored in an
I'm trying to get some database related integration tests running on a MSTest test
My integration tests are use a live DB that's generated using the EF initalizers.
Using Visual Studio 2010, I have written a simple WCF service and some integration
I have several integration tests for various services that extend the following baseclass: @ContextConfiguration(locations=classpath:applicationContext-test.xml)
I have some code that runs a model in a loop. Each iteration of

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.