1

We are using Visual Studio Online (now Visual Studio Team Services) and our front end team have chosen Git as their repository. I want to implement CI for them so that every time they commit changes, I want to copy the flat html files to a different server. There is no solution (.sln) or project (.csproj) file.

How can I achieve this?

3
  • When the commit changes, or when they push changes? Commented Oct 3, 2014 at 0:59
  • When the changes are pushed to the Main branch Commented Oct 6, 2014 at 10:51
  • Are you using the hosted build controller, or your own build machine? Where is this other server? Does the account that is running the build have access to it, or is it public? Commented Oct 6, 2014 at 20:10

1 Answer 1

3

Something like this:

First, create a solution and a project.

Second, do this: http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/12/run-ci-builds-in-your-git-team-project.aspx

Third, you're going to have to add a post-build script that kicks off the xcopy. You're probably going to want to do this in PowerShell.

Sign up to request clarification or add additional context in comments.

3 Comments

Will Git hooks be an option in this case?
Server side git hooks don't work with VSO, so no. You'll want to edit your build definition to make use of a post-build script.
Another option would be to manually write an MSBuild script that does the copy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.