tfs-2015

TFS 2015 - TF401002: The SQL Server Database Engine failed to save the database backup to path

烂漫一生 提交于 2021-02-11 08:18:32
问题 When attempting to create scheduled backups for TFS 2015, I received the following message: "TF401002: The SQL Server Database Engine failed to save the database backup to path \{share}\d$\TFSBackups. Please grant SQL service account read/write access to that folder." I can't seem to find a solution that will work for me. The 'TFSBackups' folder is shared with full permissions for the NETWORK SERVICE and MSSQLSERVER. What haven't I done? 回答1: Put the comment from Panagiotis Kanavos in the

Linking pull requests to the workitems from the TFS database

回眸只為那壹抹淺笑 提交于 2021-02-10 16:47:16
问题 We use custom queries (against TFS databases: Tfs_DefaultCollection and Tfs_Warehouse) to check if all changesets have a workitem linked to it. We use the FactWorkItemChangeset table from the Tfs_Warehouse database. Currently we are migrating to TFS Git and we want to update our custom queries to check if all the pull requests have a workitem linked to it. For example: Git pull request and its workitem We don't know where in the Tfs_Warehouse or in the Tfs_Defaultcollection database the pull

TFS2015 tbl_Content increase

好久不见. 提交于 2021-01-28 05:38:44
问题 In the last two months we started using the vNext builds and releases (5 build/release definitions). This month we noticed an increase of the collection database (from ~5GB to 25GB). I deleted and destroyed all builds of the XAML build definitions and I deleted all builds older than yesterday for the vNext build definitions. Running the below SQL script: select DATEPART(yyyy, CreationDate) as [year], DATEPART(mm, CreationDate) as [month], count(*) as [count], SUM(DATALENGTH(Content)) /

TFS Build 2.0 C#, howto add variables to the build/Pass Msbuild args

﹥>﹥吖頭↗ 提交于 2021-01-27 05:47:01
问题 I am trying to pass arguments to MSBuild 2.0. After research it appears that I need to do this using variables, but I cannot figure out how to incorporate this into my queue request below. I have tried parameters but that does not seem to work. Here is what I am trying to tell MSBuild @" /p:OctoPackPackageVersion=" + releaseNumber. This worked with the XAML build using IBuildRequest.ProcessParameters. var buildClient = new BuildHttpClient(new Uri(collectionURL), new VssCredentials(true)); var

TFS Build 2.0 C#, howto add variables to the build/Pass Msbuild args

北城余情 提交于 2021-01-27 05:46:30
问题 I am trying to pass arguments to MSBuild 2.0. After research it appears that I need to do this using variables, but I cannot figure out how to incorporate this into my queue request below. I have tried parameters but that does not seem to work. Here is what I am trying to tell MSBuild @" /p:OctoPackPackageVersion=" + releaseNumber. This worked with the XAML build using IBuildRequest.ProcessParameters. var buildClient = new BuildHttpClient(new Uri(collectionURL), new VssCredentials(true)); var

TFS Rollback vs “Get This Version”

ぐ巨炮叔叔 提交于 2020-08-24 06:57:26
问题 What is the difference between Rollback and "Get This Version" ? Both of them let me go back to a specific version and from there doing changes and check-in. What are the additional benefits of having both of them? 回答1: Get specific version / Get this version Only effects your local workspace, it reverts all your local changes to an older version. When you try to check these changes in, you'll get a merge conflict and will need to resolve these issues. It's useful when you need to debug an

TFS web portal: Possible to link/URI directly to line number in file?

人走茶凉 提交于 2020-04-12 20:49:47
问题 I would like to send my coworkers a link directly to a line number in a file in our TFS repo. Is this possible? If so, how? We are using TFS 2015. Currently, the best way I have found is to link to the file like so: http[s]://{TFS-SERVER}[:{PORT}]/tfs/{PROJECT-COLLECTION}/_versionControl#path={PATH-TO-FILE} Then, Ctrl+G to manually enter the line number. Before I dig through the JavaScript to find how Ctrl+G works, I am hoping someone can help me out. I have tried variations on this theme,

TFS web portal: Possible to link/URI directly to line number in file?

♀尐吖头ヾ 提交于 2020-04-12 20:41:34
问题 I would like to send my coworkers a link directly to a line number in a file in our TFS repo. Is this possible? If so, how? We are using TFS 2015. Currently, the best way I have found is to link to the file like so: http[s]://{TFS-SERVER}[:{PORT}]/tfs/{PROJECT-COLLECTION}/_versionControl#path={PATH-TO-FILE} Then, Ctrl+G to manually enter the line number. Before I dig through the JavaScript to find how Ctrl+G works, I am hoping someone can help me out. I have tried variations on this theme,

TFS 2015 - Waiting for an agent to be requested

前提是你 提交于 2020-03-02 09:27:35
问题 So after coming back from vacation my build server don't want to run any builds anymore. It's just stuck on Waiting for an available agent / Waiting for an agent to be requested and if I cancel it I feel it get's stuck on Build Cancelling... since nothing more is happening after I cancel the build. The waiting message is still there but the build is not in the build queue though. All the agents are green in the Agent Pool and the background service is running. I am getting the following error

How to reference a variable within a variable in VSTS vNext build definition?

纵饮孤独 提交于 2020-02-04 01:39:34
问题 How is it possible to reference a variable within a variable in the new scripting system of VSTS? e.g: RemoteMachineFqdn: somemachinename.somedomain RemoteMachineUncPath: \\$(RemoteMachineFqdn)\c$\ In the aforementioned example, assume there are tasks that both use CMD and Powershell scripts with the given variables. I tried using the the variables by referencing their values from the environment but it does not work for both scenarios since %variable% works only in CMD and $env:variable -