tfsbuild

TFS 2013 convert server path to local path

非 Y 不嫁゛ 提交于 2019-12-04 04:10:25
问题 How would I convert server path like "$/Test/BuildResources" to ex: "D:\test\etc.." I'm running TFS 2013. Would I use "GetWorkspace" item? When I try to use "GetWorkspace" and specify "$/Test" in the Name field I get an error message. Not sure if this is the way to do it. thanks EDIT: This is what I tried. This is my setup: I'm trying to convert "$/IW_Xavier/Deployment" to local path I also added GetWorkspace and set it up like this: But it doesn't convert it: I get an error message. I also

Check-ins to TFS2013 source control triggers CI build associated with separate TFS Git Repository

不羁岁月 提交于 2019-12-04 03:47:35
I have a TFS 2013 server with several TFS team project collections and developers working happily against them. The project collections have a set of TFS builds associated, including relevant CI builds which trigger on each check-in, or in some cases, rolling (accumulated) check-ins. This process works flawlessly and has been the way of working for several years. Recently, we've introduced a Git repository into the mix which also sits on our TFS 2013 server and appears as a node that I can connect to from my development environment when I connect to my TFS 2013 server. (i.e. it's not a local

Maven works in cmd but not powershell

时光总嘲笑我的痴心妄想 提交于 2019-12-04 02:46:01
I want to build with maven my java projects on TFS Build Server. TFS Build Definition use invokeprocess in workflow. invokeprocess able to run powershell script and command batch file. Maven build successed with " mvn assembly:assembly -P prod " command in windows command prompt. But does not success in powershell. (I connected to server with remote and executed on powershell ise) (either as a regular user or as an administrator) I installed Maven 3.1.1 and Java Dev Kit 6 update 45 on Windows 2012 Standart 64-bit machine.We use NTLM authentication and proxy. I defined following configuration:

TeamCity Build using C#6

ぃ、小莉子 提交于 2019-12-04 01:18:57
问题 We use TeamCity (9.0.1) as our build server, but having recently upgraded our ASP.NET MVC solution to use VS2015 and C#6 syntax, I now get the following error message on our build server: Can not start build runner and more specifically: C:\TeamCity\buildAgent\work\86ee61c6c333dc3d\MyApplication\MyApplication.csproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file 'C:\TeamCity\buildAgent\work\86ee61c6c333dc3d\MyApplication\MyApplication.csproj.metaproj'. I

WebDeploy to deploy multiple web sites

为君一笑 提交于 2019-12-04 01:15:20
问题 We're using this process to use WebDeploy to deploy and compile two web sites that are a part of the solution. The approach we took was found here: http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html But it's only deploying one of the web sites; is there a way to tell it to publish both? Thanks. 回答1: Web Packages created based on the above walkthrough (i.e. via VS 2010 and its derivatives like TFS etc) can only contain one web project. Unfortunately VS

wildcard test containers to mstest. exe

十年热恋 提交于 2019-12-04 01:03:51
Is it possible to pass wildcard testcontainer values to the command-line mstest.exe rather than manually hardcoding multiple testcontainer values? Such as Mstest.exe /testcontainer: tests .dll I'm wanting to manually invoke mstest in our tfs 2012 upgrade template.xaml build processso tthat it behaves like a autodiscovery way similar to running tests in default template.xaml If not could this be written into a bat script to loop through folders from a given start folder? oɔɯǝɹ MSTest doesn't take a wildcard parameter for the testcontainer ( look here for a reference on the command line options

TFS 2010 + MSDeploy when solution has multiple web applications

戏子无情 提交于 2019-12-03 20:54:21
问题 I have two solutions SolutionA.sln WebApplication1.csproj SolutionB.sln WebApplication1.csproj WebApplication2.csproj I also have two TFS 2010 build configurations BuildConfigA should build SolutionA and deploy WebApplication1 BuildConfigB should build SolutionB and deploy WebApplication2 (but not WebApplication1) To prevent BuildConfigB from trying to deploy WebApplication1, I put a <DeployOnBuild>false</DeployOnBuild> in WebApplication1.csproj. But that also prevents BuildConfigA from

Tagging a TFS Git repository during a release

三世轮回 提交于 2019-12-03 16:26:00
I am setting our build/release environment using TFS 2017. I set up the Build to run automatically after each commit, and when we are ready to release a version of our application, a Release is manually created, and then deployed to various environments. We would like to tag released versions in our git repository in order to easily know which git revision correspond to a binary. The "Label Source" setting in the Build definition allows to tag a git revision at build time, but since we build on every commit that would generate a lot of tags which we don't care about (as they are not deployed

What is `build agent folder` $(SourceDir) of a build definition in TFS Build 2012?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 14:29:43
问题 When creating a build definition for a TFS build, there is a section called Source Settings as below snapshoot where we have to define 1) Source Control Folder and 2) Build Agent Folder. As I understand, the source control folder is where to get the source to build. But I don't get the idea what is the build agent folder is used for in a build. Please share me what that is about if you know it. Thank you! 回答1: $(SourceDir) is the Directory on the Build machine, which will be used for Check

build definition – only empty queue

别等时光非礼了梦想. 提交于 2019-12-03 14:16:00
If I am creating a build definition, I can’t choose a Default agent queue. Not so long ago, I can create build definition which includes the default queue. I don’t know what the change was, that it doesn’t work anymore. If I go to edit a correct created build definition and then I try again to create a definition, I can choose the default queue. What is the reason for that? Editing an existing build definition before creating isn’t the solution, because I have many projects and some have a correct build definition and some have no build Definition. If you are meaning the Default agent queue