build-definition

VSTS Build not generating latest bin binaries

孤街浪徒 提交于 2021-02-15 07:50:18
问题 I am using TFS 2018 CI pipeline for MVC project, also I added the project's bin files into the TFS, there is no problem with the pipeline, its getting succeeded and artifact is generated successfully but the main problem is that if I made any changes in code related to project's DLL, the CI pipeline's build solution not generating its own latest bin file Until or unless I manually check Out the project.dll file and than check In the file than pipeline will pick the changes, what I am missing,

Update build definition using Azure DevOps REST API in PowerShell

点点圈 提交于 2020-03-21 06:45:08
问题 I'm attempting to update my build definitions in Azure DevOps using the REST API via a PowerShell script... $header = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$($personalAccessToken)"))} $definitions = Invoke-RestMethod -Uri "https://devops.domain.com/Collection/Project/_apis/build/definitions" -Method GET -Header $header $branchNames = 'master', 'feature' ForEach ($definition in $definitions.value) { $definition | Add-Member -NotePropertyName

Team build error: the path already mapped to workspace … AGAIN AND AGAIN

我是研究僧i 提交于 2020-01-17 12:25:09
问题 So I have reviewed the link to solve this problem, as referenced below. Team build error: the path already mapped to workspace But my problem is that EVERY time i queue that Build Definition i get the same problem. Ok, i go delete the tfs workspace it's complaining about. Great it works! Then run the build again... ok now it doesn't and i have to go delete the TFS service workspace all over again. How come TFS build service is stepping on itself every time it does a build. The error is "

VSTS build error: non-whitespace before first tag

会有一股神秘感。 提交于 2020-01-05 04:19:10
问题 VSTS Build definition is failing and I can't make heads or tails of this error... C:\Windows\system32\chcp.com 65001 Active code page: 65001 Detected NuGet version 3.3.0.212 / 3.3.0 SYSTEMVSSCONNECTION exists true Error: Non-whitespace before first tag. Nuget Installer build step, Visual Studio Build build step Are the build steps out of order? Am I not referencing the right file on the Nuget Installer step? The Nuget Installer calls for a nuget.config xml file but my .Net Core app houses its

TFS 2010 Build Definition: MSBuild Arguments seems to be ignored

时光毁灭记忆、已成空白 提交于 2020-01-02 12:02:13
问题 I am trying to create a package after a build in TFS 2010. When I launch the following command on my computer: MSBuild.exe Fenicorp.Front.Web.FunnyApplication.sln /p:DeployOnBuild=true;DeployTarget=Package the solution is compiled and there is a package inside the obj folder. However, when I specify /p:DeployOnBuild=true;DeployTarget=Package as MSBuild Arguments in a Build Definition and queue a new build, there is no package in my drop folder. Moreover the build status is Successfull, as if

TFS 2010 Build Definition: MSBuild Arguments seems to be ignored

ぐ巨炮叔叔 提交于 2020-01-02 12:01:15
问题 I am trying to create a package after a build in TFS 2010. When I launch the following command on my computer: MSBuild.exe Fenicorp.Front.Web.FunnyApplication.sln /p:DeployOnBuild=true;DeployTarget=Package the solution is compiled and there is a package inside the obj folder. However, when I specify /p:DeployOnBuild=true;DeployTarget=Package as MSBuild Arguments in a Build Definition and queue a new build, there is no package in my drop folder. Moreover the build status is Successfull, as if

Running (x)Unit Tests on TFS Build Pipeline

≡放荡痞女 提交于 2020-01-02 10:07:42
问题 I am merely a beginner and still trying to learn about TFS and its continuous integration workflow. Having that said, this could as well be a stupid question to ask as I might be missing on a simple detail, though any help or advice would be highly appreciated. So, I have a fairly simple Unit Test example written using .NET Core 2.0, which I would like to run as a test task on our TFS Server's CI Build pipeline. It pretty much looks something like this: using Microsoft.VisualStudio.TestTools

How to create Build Definitions through VSTS REST API

£可爱£侵袭症+ 提交于 2020-01-02 08:43:09
问题 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

TFS2010 Build Definition to Deploy to multiple servers?

南笙酒味 提交于 2019-12-29 05:24:06
问题 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

TFS 2010 - Type 'IBuildAgent' and Type 'IBuildDetail' are not defined.

☆樱花仙子☆ 提交于 2019-12-13 06:51:39
问题 I use TFS 2010 with VS 2017, I followed this article to customize my build: https://msdn.microsoft.com/en-us/library/hh850441(v=vs.120).aspx When I compile my solution, I dont get any errors, but when I launch the Build Definition with my CustomTemplate (from TFS 2010); I get theses errors: Type 'IBuildAgent' is not defined. Type 'IBuildDetail' is not defined. All the error: The build process failed validation. Details: Validation Error: The private implementation of activity '1: