Questions tagged [tfs2018]

1

votes
2

answer
410

Views

How can I override the TFS 2018 build agent variable: Build.SourceVersion?

I am using TFS 2018 on premise with a TFVC project. When I create a new build using the “Empty process” template, the “Get sources” task is automatically added as the first step. This task always gets the latest sources by specifying the latest changeset number on the command line at run tim...
Robin
1

votes
2

answer
389

Views

TFS 2018: View instance-level information

We are using TFS, in this case, for our project management (Work section). I have a server (TFS) with a collection (Default Collection) and a project (My Project) I have created a TFS group under that project (Consultants) Consultant permissions are then set as appropriate for their role- including...
Hal
1

votes
1

answer
139

Views

Change Uri/Id of a team project?

We're in the process of moving our source code from TFVC to Git, and when doing that we would like to 'start fresh' by moving to a new Project Collection. We would like to keep our work items though, so the idea was to Create a copy of the original Collection Use TFS built-in cloning function to as...
1

votes
1

answer
91

Views

BackupSets.xml locked by SYSTEM

I have an installation of TFS 2018 which is split over an app and database server. Both servers run Windows Server 2016. Frequently I get an error that the scheduled backup has failed because BackupSets.xml is locked. Process Explorer shows that it is locked by SYSTEM. There is plenty of disk space...
Dave White
1

votes
1

answer
289

Views

TFS 2018: Set changeset author and date by REST API

I have an on-prem TFS 2018 and trying to move a specific project from one project collection to another. As this is not supported by Microsoft (see User Voice suggestion here and StackOverflow thread here and here) and we need full control we decided to move the project programmatically using the RE...
Sebastian Hübner
1

votes
1

answer
71

Views

TFS testcase are not displayed on story board even story are tested by testcase

1) For TFS 2018 and VSTS, the user can create testcase directly on story board. and test cases created here are automatically linked by story with 'test by' relationship. and they can be viewed on testcase part. create one testcase for linked user story on test page 2) however, the testcase create...
zhuang
1

votes
1

answer
45

Views

TFS 2018.2 upgrade

I had a question, I went to do an upgrade of TFS2015 to TFS2018.2, In past tests and experiences, these upgrades take some time against the collections if there on the larger side. I first started a POC with TFS2015 to TFS2017.3 and that took 24 hours total to do the upgrade and it was successfully...
Craig Gordon
1

votes
0

answer
83

Views

Error during restore of TFS backup: TF400856: The following service is not registered in the database: IdentityManagement

I am running TFS 2018 Update2, and I am trying to attach a backup which has been made without detaching it first. Resorting to 'TFSConfig offlineDetach' on these databases results in the errormessage shown below: [Info @09:30:57.248] [2018-07-12 09:30:57Z] Executing servicing step 'Copy identities...
1

votes
1

answer
255

Views

How to get modified files alone in TFS Build (Git)

I needed to get the modified/new files alone in my TFS build get source task. So far I've found We can disable the Get Source task by defining the variable Build.SyncSources = false This will Just ignore of getting all the sources, which will eventually make my CopyFile Task to Fail since it using t...
Jayendran
1

votes
1

answer
113

Views

TFVC source control binding invalid when migrating to new workspace

I'm switching to a new machine and would like to keep my TF files as they are. Thus I simply copied the entire folder to the new machine's (same as the previous one - C:\TF), mapped it to the TF server's root, and attempted to open a solution from the file explorer, hoping that it would bind more or...
Platedslicer
1

votes
0

answer
22

Views

TFS Version Compare Unnecessarily Crossing Out Lines

Whenever I am comparing a file and there is a difference in the line, the comparison tool puts a strikeout through the line making it very hard to read that side. Other developers using the same on-prem instance of TFS don't see this line. It is really annoying. I'm using the web interface of TFS 2...
Jordan
1

votes
0

answer
215

Views

SonarQube - TFS 2018 - Prepare analysis task failing with error (401) Unauthorized

I am trying to use SonarQube (server version 7.3) with TFS 2018, however, the first task (SonarQube - Prepare analysis) is always failing with a 401 error. I am using the connector available at the Marketplace and also I followed all the available instructions. If I call same SonarQube URL direct fr...
Marcus Couto
1

votes
2

answer
81

Views

Cannot use TF destroy command due to a shelveset for a user with Invalid Identity

I am trying to use the tf.exe destroy command to remove the history for a branch, and get error TF14127 which means cannot destroy because a file is being used by a shelveset. Destroy command being used is: tf.exe destroy $path /keephistory /startcleanup /silent /noprompt /stopat:D01-08-2018 So I t...
TickFord
1

votes
0

answer
39

Views

In the vsts extension How to get the value from a url parameter?

I created a vsts extension control with JavaScript and html and I added it to the WebLayout XML and everything works fine. But when I used [Copy template Url] I found that the value was not automatically set up like System.Tile. The Url like: https://th-jinzhe-vm01:8443/tfs/DefaultCollection/Conten...
Jinping Zheng
1

votes
0

answer
32

Views

Error saving a Task Group on TFS 2018.2 on prem

Recently we've upgraded our TFS from 2017.1 to 2018.2 I have found a bug when saving a Task Group, when I click 'Save' or 'Save as draft', nothing happens and it throws an error to the browser console.
Lee Katsnelson
1

votes
0

answer
50

Views

TFS 2018 - Save a close button

I'm working with TFS 2018 and I want to prevent my users from clicking on the 'Save and close' button in the form of a work item. Is it possible to remove the button? !
Lucas Beltran
1

votes
1

answer
916

Views

TFS 2018 process template editor gone?

I have scoured the internet for a Process template editor for TFS 2018. We used to have a TFS 2013 on premise version and when i edit work item types, i normally do it in process editor in Visual studio since its easier with the GUI than doing the witadmin import/export. Since we moved to TFS 2018,...
rk13
1

votes
1

answer
29

Views

How to get who/when changed the work item type in vsts?

When we are doing the customization of a work item type in VSTS. Do we also have the ability to track the history of the customization itself? For example, we are trying to find out when the start date field was added to our customized Bug work item type. A field was not there in a previous Increme...
Tomhans.J
1

votes
0

answer
41

Views

Measuring the impacts of renaming a TFS projects collection

To get rid of an issue with the name set previously for our projects collection, I have to rename it. The procedure seems really simple : detach the collection rename the collection Reattach collection My issue is that I do not have access right now to my preprod TFS and can't measure what will hav...
Aziris Morora
1

votes
2

answer
126

Views

Linking pull requests to the workitems from the TFS database

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 ch...
Anne Salomons
1

votes
1

answer
32

Views

Priorize a single workitem in TFS

Before we migrated from TFS 2013 to TFS 2018, our workitems were sorted/priorized by a Product Owner with a custom work item field, which held a value between 1 and 10000+, where 1 is the most important to 10000+ which is not important at all. We added the custom field to the work item templates, so...
Jannik
1

votes
1

answer
124

Views

MSTest - Run “LoadTests” and Write Results to SQL Server Database

If you want to configure your VS 'Load Tests' to write the results to a database server, you use the following instructions. If you want to run your 'Load Tests' through powershell on a separate machine(think TFS 2018 release step), you use the following instructions. I would like to do both, on mul...
David Rogers
1

votes
0

answer
133

Views

How can I get code coverage from multiple projects

I have a solution with 4 projects (2 regular and 2 test projects). I have a build pipeline in TFS 2018 that builds my solution and checks the code coverage. My problem is that only the code coverage from one project is reported. The code coverage from the other project is missing. All tests are run,...
gartenriese
1

votes
0

answer
20

Views

TFS search code under path and combine scopes

I am trying to search TFS 2018 using code search feature for some text (.NET version in this case) in all config files for a given project or path but it only works without path: or proj: scope returning results from entire repository. For example NETFramework,Version=v ext:config returns results fo...
Dean Kuga
1

votes
1

answer
36

Views

How not to lose parallel testing with tfs build and keep build agents work

I'm setting up a TFS testing build and want to support full parallel testing. Only some of our tests run in parallel and therefore after they finished running on the build agent - the build agent do not getting new tests to test. Therefore, a build that took us 30 minutes start to take an hour and m...
Noa Sasson
1

votes
1

answer
29

Views

Is the Azure SQL VM is required after importing a large TFS collection to Azure DevOps?

As per the document, the SQL login has to be deleted or password has to be rotated post import. My question is, do we even need the VM after we successfully import? Can we terminate the Azure SQL VM after importing the TFS collection?
Nilava Dasgupta
1

votes
0

answer
97

Views

How to setup multiple build environments in Azure DevOps/TFS2018?

So I have an application that contains an ASP.NET Core backend and a React frontend (pure static). In our TFS 2018, we have created a Build that does the following: Get sources from the repo Get Nuget packages (backend) Build the backend Run backend tests Get NPM packages (frontend) Build the fronte...
emzero
1

votes
1

answer
38

Views

Cannot manage security in TFS 2018 on a Team Project with Project Collection Adminstrator Role

I have been converting access to Team projects using Active Directory groups. I am a project collection admin and we host around 40 odd team projects. On all the other proects everything is fine, I have been able to add all the AD groups I needed to the Various TFS groups that exist in a Team Projec...
Luke Duddridge
1

votes
0

answer
20

Views

TFS 2018 on premise behind proxy service hooks notification failure

since few days, service hooks all fail to notificate (PR updates, Work Item comments and so on) with this error and I don't know why. TFS is installed on a domain machine (active directory) and had no problems so far. The funny thing is that if I test in the Service Hook it does work Slack or Teams....
DioBrando
1

votes
0

answer
26

Views

Is it possible to schedule and log automated test results on TFS, without making them part of a build/release?

If I wanted to schedule automated testing, is it possible to log the results to TFS, without making those tests part of a build or release? In other words, if I wanted to schedule daily automated tests, is it possible that the results of those tests can be logged to TFS? This is for the local versio...
Nastronic
1

votes
1

answer
280

Views

TFS2018 path to api

I have a TFS2018 setup on a server and I am trying to figure out what is the path to the api. Should the path look look like this? Do I have to enable the API on the server? https://myserver/tfs/DefaultCollection/MyProject/_apis If I run this in code like this var cred = new VssCredentials( new Wind...
doorman
1

votes
1

answer
376

Views

TFS 2018 - Custom Build Task with boolean parameters

I've created a custom build task and its extension for TFS 2018. Two of my parameter are boolean. On task.json I set the default value to false. When I execute a build definition with my task I get the following error: System.Management.Automation.ParameterBindingArgumentTransformationException: Can...
FEST
1

votes
1

answer
326

Views

TFS2018 Automated Test Build The file c:\chromedriver.exe does not exist

I've set up a build on TFS for my test automation suite. It has 3 tasks - a Nuget restore, the solution build and a VSTest task. In my tests I create a new ChromeDriver instance, and I have the Chrome Webdriver Nuget installed on my solution. This works fine locally. However the TFS build is throwin...
mikey h
1

votes
1

answer
62

Views

Is it possible to execute TF history command from a script build task?

I am setting up new builds in TFS 2018 on premise. We need to track the changesets used for our builds. I have a PowerShell script as a build task that executes TF.exe history command to get the info. This script runs as long as I execute it from my session but it fails from the build process w...
Sam
1

votes
2

answer
400

Views

Change default language for TFS 2018

I have an installation of Team Foundation Server 2018. The problem is the web interface defaults to English (United States). I need to change this to English (Canada) as the default but this is not in the Language drop down. The Windows Server is set to use English (Canada) so I need to know how t...
Beakster
1

votes
1

answer
221

Views

Add Additional Columns to Links Page (TFS 2018)

I am trying to add additional columns to the 'Links' page as highlighted in yellow, but can't seem to figure out how to do so. The request is to add columns to show 'Assigned To' and 'Remaining Work'. I've looked over and attempted following the information here with no luck: LinksControlOptions XM...
XanderJames
1

votes
1

answer
73

Views

Custom environment template for a TFS release

How do I create a custom environment template for a TFS release? Here is the document to delete it. https://docs.microsoft.com/en-us/vsts/build-release/concepts/definitions/release/env-templates?view=vsts#how-do-i-delete-a-custom-environment-template I am trying to add a new custom template to the T...
user3634685
1

votes
1

answer
337

Views

Configure TFS 2018 build agent with no internet access

I configured a TFS 2018 [On-premises] agent pool and scheduled a build. Used the 'Service fabric build template'. Build failed with the following error No agent found in pool Default which satisfies the specified demands: msbuild visualstudio Cmd Agent.Version -gtVersion 2.115.0 In the 'demands' sec...
teeboy
1

votes
2

answer
312

Views

Anchor can't find headings

I have headings in all of my TFS 2018 Wiki documentation but I can't seem to link to those headings. If I have a document at /foo/bar and a heading in the bar document called # 1.3 Hello World I would expect my link to be [Hello World](/foo/bar#1.3-Hello-World) but when I click on that link it doesn...
1

votes
2

answer
57

Views

Custom task picklist doesn't show in active release, but does in definition

We have a custom task that is exhibiting some strange behavior in our Release flow. One of our inputs is a picklist with 20 options. Additionally, there is a text field that is only visible if you choose the 'Other' option in the picklist. This is the relevant portion of the task.json (with some ano...
Tyler Lee

View additional questions