build-definition

How to create Build Definitions through VSTS REST API

徘徊边缘 提交于 2019-12-06 03:17:17
Situation: I'm currently working on automating CI/CD configurations through bitbucket -> vsts -> azure. My ideal result is to be able to copy paste (or manually enter) my configuration values into their respective console programs and have the applications configure the whole CI/CD ordeal without having to click through all the web interfaces. It's now possible in Bitbucket and Azure, but creating the VSTS CI/CD configurations through REST API is proving to be difficult. Azure resources and Bitbucket configurations are currently created through a simple .NET console application that talks to

How to Move TFS 2010 Build Definition between Projects?

拟墨画扇 提交于 2019-12-05 00:57:43
I have some TFS 2010 build definitions that were created under ProjectX. Now the source code has moved to a folder subordinate to ProjectY. How can I move the build definitions to ProjectY so they display under the Builds node of the Team Explorer for ProjectY? I don't think there is something out of the box to copy the build definitions from one project to another. However you should be able to do it using the TFS API. You will want to move the build process templates, which is what Pete is referring to, into the Build Process Template folder for the new project. After that you would do

TFS 2012 Build Definition for web deployment ignores parameters defined in project files

北城以北 提交于 2019-12-04 13:17:49
I'm trying to set up a TFS 2012 build definition that will build a solution and deploy several web apps within the solution. I came across this article that seems to address exactly what I'm trying to do and also seems to agree with the solution mentioned here . So I tried implementing the build definition/project configuration as described in that article, but no matter what I do, it seems to be ignoring the parameters I put in the specific configuration property group of the csproj files which look like this: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'MyConfig|AnyCPU' "> .

Visual Studio Team Services - Build fails, definition wrong?

你说的曾经没有我的故事 提交于 2019-12-04 12:24:52
I've been working on a project for some time now and now I want to use Visual Studio Team Services for it. Locally, the building in Visual Studio doesn't give an error and the application works as intended. I've checked in this working code to VSTS so it's in the repo and good to go. Now I want to build it. I created a new Build definition with nothing changed . When I run the build it fails. I tried editing the build definition but with my 0 experience with this I only screw up more and create more errors. My problem: Apparently, it wants to find C:\a\1\s But I have no idea why and how it

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

How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?

狂风中的少年 提交于 2019-12-01 06:20:55
For a build process template , we can add/remove/edit the argument list of it and use it as variables within the build/work-flow steps. I reading the nice guide here I'm cloning the template DefaultTemplate.11.1.xaml to sayHello-DefaultTemplate.11.1.xaml and edit it via Visual Studio 2012. I first added one argument, called TestMessage . I check in my changeset to the Source Control. Then I create a build definition sayHelloBuild based on this template. And when I go to the Process tab, I can see TestMessage in the Misc section. I save the build definition. Trying to queue it and it gets

How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?

感情迁移 提交于 2019-12-01 05:23:58
问题 For a build process template , we can add/remove/edit the argument list of it and use it as variables within the build/work-flow steps. I reading the nice guide here I'm cloning the template DefaultTemplate.11.1.xaml to sayHello-DefaultTemplate.11.1.xaml and edit it via Visual Studio 2012. I first added one argument, called TestMessage . I check in my changeset to the Source Control. Then I create a build definition sayHelloBuild based on this template. And when I go to the Process tab, I can

TFS Build error - “The specified path, file name, or both are too long…”

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 09:51:34
I'm writing the Custom Activities of build process template. I got the below issue when build the activity. >XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' : 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'. Do you have any ideas? Please help! I find one tip here . Hope it might be helpful to you. Currently there are a two workarounds: Reduce the

TFS Build error - “The specified path, file name, or both are too long…”

时间秒杀一切 提交于 2019-11-29 14:43:37
问题 I'm writing the Custom Activities of build process template. I got the below issue when build the activity. >XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' : 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'. Do you have any ideas? Please help! 回答1: I

TFS2010 Build Definition to Deploy to multiple servers?

强颜欢笑 提交于 2019-11-29 02:03:57
I've been looking into TFS2010 new build and deployment features with MSDeploy. So far everything is going well (although its been hard to find information about specific scenarios). Can I modify my Build Definition to specify 2 or more servers to deploy to? What I need to do is deploy to multiple servers (as I have two in my testing environment which uses a NLB). What I have now is a Build definition which Builds, runs my tests, and then Deploys to ONE of my testing servers (which has the MsDeployAgentService running on it). It works fine, and each web project is deployed as configured in its