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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:43:30+00:00 2026-06-13T00:43:30+00:00

I’m using Teamcity to automate (single click) deploys into our QA environment. At the

  • 0

I’m using Teamcity to automate (single click) deploys into our QA environment. At the moment content items are being deployed, but the QA guys then have to go and manually trigger a re-publish of the site.

Is there anyway using either TDS, Sitecore Rocks or A.N.Other tool to automate the re-publish at the end of the deploy process.

I know I can configure Sitecore to automatically publish every x minutes, but I would rather leave that deactivated as QA will also be performing load tests and I don’t want the scheduler getting in the way.

  • 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-13T00:43:31+00:00Added an answer on June 13, 2026 at 12:43 am

    We have done this by setting up an ASPX on our daily build and QA websites that triggers a publish. The build then has a Powershell call to trigger this. We’ve done this with CruiseControl, TeamCity, and Team Build.

    TeamCity Configuration

    The configuration for TeamCity uses an additional build step after you’ve deployed files and TDS:

    1. Runner Type: Powershell
    2. Step name: Trigger Publish to Web DB
    3. Powershell run mode: x64
    4. Working Directory: [no value]
    5. Script: Source code
    6. Script Source:

      $r = [System.Net.WebRequest]::Create(‘http://myqasite/SomePath/Publish.aspx’); $resp = $r.GetResponse();

    7. Script execution mode: Put script into Powershell stdin with “-Command -” arguments

    Publish.aspx

    The code for our Publish page is something like this:

        string full = Request.QueryString["full"];
    
        // Set up the publish mode
        PublishMode publishMode = PublishMode.Smart;
        if (!string.IsNullOrWhiteSpace(full) && (full == "1" || full.Equals("true", StringComparison.InvariantCultureIgnoreCase)) ) {
            publishMode = PublishMode.Full;
        }
    
        using (new Sitecore.SecurityModel.SecurityDisabler()) {
            //We need the target database
            var webDb = Sitecore.Configuration.Factory.GetDatabase("web");
    
            //source db
            var masterDb = Sitecore.Configuration.Factory.GetDatabase("master");
    
            try {
                foreach (Language language in masterDb.Languages) {
                    //loops on the languages and do a full republish on the whole sitecore content tree
                    var options = new PublishOptions(masterDb, webDb, publishMode, language, DateTime.Now)
                                  {RootItem = masterDb.Items["/sitecore"], RepublishAll = true, Deep = true};
                            var myPublisher = new Publisher(options);
                            myPublisher.Publish();
                }
            }
            catch (Exception ex) {
                Sitecore.Diagnostics.Log.Error("Could not publish the master database to the web", ex);
            }
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have a French site that I want to parse, but am running into

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.