tfs

TFS 2013 environment variables always empty

Deadly 提交于 2019-12-25 14:23:23
问题 I've defined custom arguments in my xaml build script and provided values: Then In my build I get the following instead of actual TF_BUILD_BUILDDIRECTORY. This is the string that writes: "dotCover Report..." String.Format("dotCover Report Path: {0}\{1}", DotCoverReportPath, DotCoverReportFileName) It's not translating to actual BUILDDIRECTORY path. What am I doing wrong? I've hit "refresh" several times and still no go. I wanted to get "C:\temp..." etc 回答1: Possible duplicate with this case

Setting properties in triggered build

白昼怎懂夜的黑 提交于 2019-12-25 14:13:02
问题 When queuing a new build using VS it is possible to pass in arguments to MSBuild which let's you do thing like skipping some steps of the build or do some things conditionally. Is it possible to pass in such arguments to a build that's triggered by a checkin or a nightly build? 回答1: You can check the value of the $(Reason) property in your TfsBuild.proj file. <Target Name="BuildNumberOverrideTarget" Condition=" '$(Reason)' == 'Schedule' "> <MyBuildNumberGenerator TeamFoundationServerUrl="$

Get specific versions of TFS code in a different directory

。_饼干妹妹 提交于 2019-12-25 13:09:20
问题 Currently we have a build process as follows: I do a build into our dev staging environment. I label this in TFS. I use SVN bridge to check out that changeset that was labelled.* If testing for dev staging passes, I use the working copy I checked out to do another build into the next environment. I don't want to have to use SVN Bridge to have a copy of my code somewhere else for code at a specific version, but I have not found a way to do this natively in TFS (2010). Is there a way of doing

Get specific versions of TFS code in a different directory

℡╲_俬逩灬. 提交于 2019-12-25 13:09:05
问题 Currently we have a build process as follows: I do a build into our dev staging environment. I label this in TFS. I use SVN bridge to check out that changeset that was labelled.* If testing for dev staging passes, I use the working copy I checked out to do another build into the next environment. I don't want to have to use SVN Bridge to have a copy of my code somewhere else for code at a specific version, but I have not found a way to do this natively in TFS (2010). Is there a way of doing

How to add attachment (with code coverage details) in build notification email in Team Foundatuon server 2017

懵懂的女人 提交于 2019-12-25 12:44:24
问题 Hi we have some requirement. We have to send code coverage and Verascan details as an attachment in build notification emails in Team Foundation Server 2017. Can someone help me to achieve this functionality? Thank you 回答1: You could use some custom tasks to send mails in the build definition such as send email or email task. With attachments which allows for a comma separated list of attachments to be added to the email, and this is where you would attach your code coverage report. A sample

Aggregating capacity for multiple teams in TFS

╄→尐↘猪︶ㄣ 提交于 2019-12-25 11:52:49
问题 We have a project with multiple teams managed in TFS 2013 update 2. The problem is that if i have two teams, and a person works 5 hours in each, when i look at the teams parent, i dont see the value automatically updated to 10. In other words if i make a mistake and define a capacity that sums up to more than the actual work day, there is no way for me to see it. I can develop a server extension that will update the capacity of the parent team, but i am stil hoping for an easier solution. 回答1

Get the team backlog using TFS REST API

风格不统一 提交于 2019-12-25 11:11:11
问题 Is there a REST API I can call to retrieve the backlog (as in "the list of work items on the backlog") for a particular team in TFS? I have found that TFS uses a private API to retrieve the content, but I am not particularly confortable using it since it is not documented. Btw, the private API in question is [project]/[team]/_api/_backlog/payload?__v=5&level=Stories&includeParents=false 回答1: I've tested this API on my side, it does get all information on Backlog site. Although it is not

git fetch keeps failing

时光怂恿深爱的人放手 提交于 2019-12-25 09:28:37
问题 I created a branch on Ms TFS and I tried to pull it on to my local machine with the code: git fetch This is the result of the fetch: error: cannot update the ref 'refs/remotes/origin/tryYourself/192RestService': unable to create directory for '.git/logs/refs/remotes/origin/tryYourself/192RestService': No such file or directory From "url" ! [new branch] tryYourself/192RestService -> origin/tryYourself/192RestService (unable to update local ref) Then I searched it on Google and StackOverflow,

How to correctly pass variables & source version to API 2.0 VNext Build in TFS 2015

那年仲夏 提交于 2019-12-25 09:24:19
问题 I'm having difficulty finding how the correct way to pass defined variables and build definition arguments to the new API 2.0 build engine with TFS 2015. I'm using TFS 2015 Update 3 on-premise . I've triggered a POST with powershell that looks like this: $Build_Definition_ID = 1234 $TFSInstanceURL = 'http://tfsservername:port/tfs' $ProjectCollection = 'CollectionName' $TeamProject = 'ProjectName' $Changeset = "12345" $UserName = "$env:USERDOMAIN\$env:USERNAME" $UserNamePartial = $env:USERNAME

Set up CMakeLists to not change the include statements from TFS project in Android Studio

▼魔方 西西 提交于 2019-12-25 09:19:31
问题 From a previous question a new one have arisen. I want to include 2 native TFS project libraries stored in two different folders, dependant from each other in my Android Studio project (stored in another folder). If i not specify "../my_lib_path/libFile.h" instead of simply the "libFile.h" i get the error the file is not found. But i dont want to change all includes since it is a TFS project and there are lots of file contained in the libraries! Your help is highly appreciated! 回答1: Add the