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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:59:20+00:00 2026-06-18T03:59:20+00:00

My setup in TeamCity: I’ve got a CI configuration running a singular build step

  • 0

My setup in TeamCity:

I’ve got a “CI configuration” running a singular build step that uses a MSBuild script checked-in to the from the project. The configuration has a number of sub targets such as unit tests, deployment to test site etc.

I also have a “Deploy configuration” with a singular target using another MSBuild script that only does deployment (using msdeploy). This is triggered manually.

My problem:

The “Deploy configuration” need to deploy a revision based on the latest pinned build from “CI configuration”. The whole idea is essentially to get a one-click-deployment functionality based on latest pinned build in CI. Does anyone know how to do this in MSBuild using TeamCity?

Im guessing I need to use “Snapshot Dependencies” to get the latest pinned revision, but I have not been able to figure out how to deploy that snapshop in the MSBuild script.

Also I’d like to specify that I would like to do this within MSBuild script and not by using the “Custom build” dialog in TeamCity.

  • 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-18T03:59:22+00:00Added an answer on June 18, 2026 at 3:59 am

    Ok, figured it out on my own.

    You need to set a row in the “Artifacts path” like so “*/ => source” in the CI configuration.

    Then add a “Artifact dependency” in the Deploy configuration pointing to the CI configuration in the “Depend on” select and set “Get artifacts from” to “Last pinned build” and then point to the “Artifact rules” like so: “source => source”.

    And at last, inside my MSBuild file, I added “/source/”, to my project path in the Target-node with the deploy.

    Works like a sharm every deployment. 🙂

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

Sidebar

Related Questions

I am trying to set up a Teamcity build configuration that runs from our
For background: I've got quite a nice TeamCity setup; containing a ci build and
I've got TeamCity setup as my CI solution to build, package, and deploy (via
I am trying to setup a .net build using Teamcity. We got it to
I've already got a NAnt build script that builds/runs tests/zips web project together, etc.
we’ve now got a reasonable early days set up with TeamCity (6.5) & MSBuild..
I'm trying to setup CI server (TeamCity 7) and run daily build and smoke
How do I setup VisualSVN Server to trigger Teamcity to build a specific project
I am trying to convert a build system setup with TeamCity and Nant scripts
I finally have TeamCity setup to build on Source Control changes, and a separate

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.