Questions tagged [tfsbuild]
Automated Builds using the Team Foundation Server / Visual Studio Team Services build system
3,291
questions
0
votes
0
answers
14
views
TFS prevent developers unlinking a work item that contributed to code changes from PR
We have a git commit-msg hook in place for developers to mention a valid tfs work item when checking in code changes. So that all contributed work-items are automatically linked to a pull request when ...
0
votes
0
answers
21
views
TFS Incremental build: Clean Repository
I am working with an older version of TFS and am trying to save time by only doing an npm install if the packages have changed or only webpack if the javascript files have been changed. There are a ...
0
votes
1
answer
16
views
TFS vNext build - Cannot get check-in numbers which are checked in by the build
I have a usecase where I need to decide which changeset(s) are checked-in by a corresponding vNext build in TFS2019.
We used to have a working associated changes area in XAML, which only showed what ...
0
votes
1
answer
77
views
Branch name variable in TFS YAML pipeline
I am trying to make a TFS release YAML pipeline which takes resources from specific builds from branches.
For the resources part:
resources:
pipelines:
- pipeline: pipelineA
source: SourceA
...
1
vote
2
answers
48
views
Team Foundation Server Build Files LastWriteTime is Set to Today's Datetime Instead of the Actual LastWriteTime
I am trying to package only files that have been changed in the last 2 minutes using the built-in Team Foundation Server (TFS) build functionality from a git repository on the same TFS server.
I have ...
-1
votes
1
answer
166
views
Azure DevOps build pipeline stuck at loading build history
Azure DevOps build pipelines stuck at loading the build history, It is happening for few pipelines but rest are fine. When I recreate these pipelines with same templates, those all are working fine ...
0
votes
1
answer
39
views
Unit Testing Failing on Build Server
We had a build server doing CI. All of a sudden the Unit test were failing without any changes. We are getting below error:
Unhandled Exception: System.AggregateException: One or more errors occurred. ...
0
votes
1
answer
18
views
TFS Build with Source Control Folder (branch) determined by parameter
My team has long been using a build process that always builds from a the same single branch.
The whole system is based around having low volume of work going on, so 1 person doing 1 task at a time is ...
0
votes
0
answers
17
views
Team Foundation Server - Error: You are not authorized to access Microsoft-IIS/8.5 [duplicate]
I'm having some trouble with my team foundation server 2012. I create a new user on the TFS and mapped on the user machine the folder for the workspace, the folder have security permission for ...
0
votes
1
answer
399
views
$(Build.SourceVersion) not giving latest change set number sometimes
In the build pipeline task(Power Shell), I try to retrieve the value of $(Build.SourceVersion) assuming it will give the latest change set number that triggered the build. But sometimes it is giving ...
0
votes
0
answers
43
views
How to fix apk generation in TFS server?
I have a an old ~4 years old android project which min sdk is Api 21 and target sdk is Api 28, and I also have a release.jks keyStore file, which is works great with the old project. So to TFS can ...
0
votes
0
answers
31
views
How to fix failed Unit tests in Tfs server?
I would like to generate signed apk with by TFS server.
Firstly when I used my 4 years old keyStore file, my new apk was broken because of the keystore file. The signing algorythm was unspopported, so ...
-1
votes
1
answer
59
views
TFS build server settings to execute continues build step by step
I am working on TFS continues build which runs after any checkin. I have two more build which run at same time in same checkin. Now I want to force to one of build to wait until other two completed ...
0
votes
0
answers
41
views
How to delete old TFS coverage data
In our Azure DevOps on premises deployment, tbl_FunctionCoverage uses about 5 GB. Looking at the corresponding coverages in tbl_Coverage they seem to be very old (between 2011 and 2015), produced by ...
0
votes
1
answer
155
views
TFS Test Filter Criteria syntax
I am struggling with excluding tests in automated TFS run.
In settings for Test filter criteria gave but the it doesn't seem to exclude the tests in that category
($(TestFilter))&(TestCategory!~)
...
2
votes
0
answers
362
views
tfs build failing on dotnet restore for .net 6 after upgrading
We're currently in the process of upgrading our solutions to .net 6 and seem to be running into a problem. we have a powershell step that runs a dotnet restore and its failing now on .net 6
the error ...
0
votes
1
answer
713
views
Need to remotely open Chrome Settings Help in foreground using PowerShell
I have a requirement to run a script everyday and automatically update "Chrome Browser" if a new version is released. I am using a PowerShell script that goes like this:
Add-Type -Path "...
0
votes
2
answers
58
views
How to build Android project?
I have a well-functioning TFS build settings fro my projects which is works very well with my older android projects.
So recently I creted a new Android project, and I tried to build and create an apk ...
0
votes
1
answer
133
views
How to reproduce old/previous builds in TFS Build?
Environment:
TFS 2018 with source code in TFS Git
developers are using gitflow-like workflow (main, develop and short-lived feature branches)
there is a build definition used for CI (off of develop ...
0
votes
1
answer
269
views
Where is the location of Release Artifacts on TFS/Azure DevOps
Can anybody tell me where the Release Artifact comes from when you use it in a Release Definition?
I’m currently using TFS on-prem (v15 Update 1) to handle undertake Build & Release. I believe ...
-1
votes
1
answer
107
views
How to move AX 2012 Version Control TFS to another server keeping the same Sync Repository configuration?
My Dynamics AX 2012 DEV environment is attached to TFS - Team foundation server.
I moved the AX AOS to another Server (keeping the same SQL database Data and Model), in this way I copied in to new ...
3
votes
1
answer
305
views
Getting Build Test Results from Azure DevOps in C# app
I am making a program in ASP .NET Core and I am trying to get the Test Runs for specific build in specific Build Definition. So far I have created some some methods which can get the build definition ...
0
votes
0
answers
250
views
Why is the Azure DevOps Build Pipeline fails to download the source code with an error?
I am using Azure DevOps Server 2020 and the TFVC repo.
I have a build pipeline and it is currently failing at the Get Sources task while downloading the code. It download half and fails with the error ...
0
votes
0
answers
24
views
TFS Undo convert Team Project to branch
I found the solution about how to create a new branch wit multiple foders, thanks to this post .
How to branch a TFS Team project that has no branch folder
But before I can do that, I made a mistake ...
1
vote
2
answers
369
views
Is it possible to do the code review if we select TFVC version control while creating the project in Azure DevOps Services?
Is it possible to do the code review if we select TFVC version control while creating the project ? I want the code review should be mandatory if my project is using TFVC.
For Git I know its possible. ...
0
votes
0
answers
130
views
How to use PATS to execute a powershell file from an Inline Powershell Script in TFS Build Definition
I'm trying to execute a powershell script XYZ.ps from an Powershell task which is in a TFS Build Definition. The Build Definition is executed with UserA and this UserA does not have permission to Read/...
0
votes
2
answers
42
views
TFS Build fails even though same build from command line works
I have a TFS CI build that fails every time although if I go to the TFS console and copy the exact command that's being executed and copy/paste it to a CMD prompt on the same machine and run it it ...
0
votes
0
answers
136
views
On-Premise Azure DevOps Server 2019: Backup Retained Builds' Artifacts
Background
I am currently migrating my on-premise Team Foundation Server 2015 (Update 4) to Azure DevOps Server 2019.
What I used so far
I have built a C# console application that scanned through the ...
0
votes
1
answer
478
views
MSBuild not creating DLL's in Bin directory
We are using ADO 2019 on premises and we have a build server where we build everything. I have an ASPNet web page that the developer has add a second project to the SLN for testing.
I am getting the ...
0
votes
1
answer
908
views
Run powershell command as a background
I need to trigger TFS build run command as a background process. How can i do it in Powershell? I have tried to use Start-Job command but it does not work. Need your help.
C:\Program Files (x86)\...
0
votes
1
answer
164
views
Apple App store release task 1.183 Errors out. The current operating system is not capable of running this task
Our TFS ios builds have started failing in the Apple app store release task. The error recorded is
The current operating system is not capable of running this task. That typically means the task was ...
2
votes
4
answers
314
views
VSTS/TFS Waiting for an enabled agent. All possible agents are disabled when using custom task conditions
TFS: 2017.3
Agent version: 2.112.0
I have a really simple build with a single Powershell script task. All the task does is a Write-Host, and it works fine.
I'm testing the conditional execution of ...
0
votes
1
answer
308
views
How can I am filter NUnit tests when running vstest.console.exe
2
1
I have a suite of automated tests (some with SpecFlow, some with NUnit), that I run as part of my TFS build (using visual studio online, with a hosted build agent).
Some of my tests (acceptance ...
0
votes
1
answer
36
views
How to create a folder in TFS 2015 to store the Build Definitions?
I have been working on TFS 2017 update 3 from past couple of years and now I have started working in new team where they are using TFS 2015.
In TFS 2017 Web, all the Build Definitions we had we used ...
0
votes
1
answer
231
views
Using Visual Studio 2019's MsBuild with TFS 2018 task
I'm running an on-prem TFS 2018 U2 and I want to use the latest MsBuild (currently - the one from Visual Studio 2019).
The way I do it right now is running the MsBuild Task with the location for the ...
0
votes
1
answer
1k
views
CMake cannot find source file, but file was not specified in CMakeLists.txt, in TFS build definition
I'm porting a large project to linux. I wrote all the CMakeLists.txt files, and everything compiles in my machine.
For whatever reason we still use TFS. The old version, not git with TFS.
I'm working ...
0
votes
1
answer
124
views
tfvctemplate.12.xaml build template does not work in Azure DevOps 2019
We recently migrated from TFS 2013 to Azure Devops 2019 ( on premises )
We have two servers , TFS server is running Azure DevOps 2019 and build controller is running on TFS 2010
As a result , Older ...
0
votes
1
answer
151
views
How can we fetch the shelveset name during Gated check-in and assign it to a variable in tfs build task
We have a mapped workspace where each project is having multiple references to other projects. On the same workspace, we perform our whole product build nightly.
When we enable gated check-in for ...
2
votes
2
answers
151
views
Cannot create CxSAST build step on MS Team Foundation Server 2015
I installed the Checkmarx plugin on MS Team Foundation Server 2015 SP 3 (checkmarx.cxsast-2020.3.11.vsix). In the extensions section of the TFS web GUI the plugin shows as "installed" and &...
0
votes
1
answer
178
views
Error when trying to build solution in TFS 2015 sp3 - can't figure it out
We are developing with VS2019, managing all code and builds in On-Prem TFS 2015 service pack 3.
Been running into the following TFS build issue and can't figure out what the real problem is. I ...
0
votes
1
answer
453
views
Run Selenium UI test on TFS build server for Asp.Net WebForms
I am new to Selenium and TFS build. I wrote some UI test cases with Selenium WebDriver, it is running fine in my local environment. Now, I want to run these UI test cases in the TFS build. I did the ...
2
votes
1
answer
652
views
How to automatically notify tests' owners on failing tests?
We're using Azure DevOps to run a nightly build that checks our tests results. Our tests are decorated with Owner attribute (MSTest) of the test's owner name.
What is the simplest way to auto send ...
1
vote
1
answer
141
views
How to ignore specific directory to not include during Get sources in TFS
I have an Automation Build definition in TFS which points to the main build (Central repo).
When I run the Automation build in TFS, though the Clean is set to false, during Get Source the build ...
0
votes
1
answer
253
views
TFS upgrade ERROR: TF400255: The SQL instance MSSQLSERVER does not exist on the local machine
I'm new to TFS, can anyone help with this? I upgraded TFS from 2013 update 3 to update 5. The error says it can't find MSSQLSERVER instance but MSSQLSERVER services is running.
Log output:
+-+-+-+-+-...
0
votes
1
answer
40
views
Does TFS has releases tab like we have at GitHub Releases
I am looking for hosting .exe files in Azure Devops. It seems to don't have feature similar to how we host executable or build files in GitHub for other people to download. Do we have such kind of ...
-2
votes
1
answer
209
views
TFS Build agen failing to find .certifcate file
1. 2020-09-18T19:03:37.9661852Z ##[debug]Evaluating condition for step:
'Get Sources'
2. 2020-09-18T19:03:37.9783485Z ##[debug]Evaluating: SucceededNode()
3. 2020-09-18T19:03:37.9798521Z ##[...
0
votes
2
answers
100
views
Update TFS build environment variable from asynchronously executing PowerShell process
I'm working on a TFS build process featuring adownload of a large ZIP archive from an Artifactory repository. The download typically takes upwards of 20 minutes, effectively doubling my build ...
-1
votes
1
answer
163
views
Error CS0579 occurs on TFS build agent but succeeds when build is run locally
I am getting CS0579 errors from my TFS automated build system. The same build script works fine on my development machine. Build is also successful in Visual Studio. The project is that is erroring ...
2
votes
1
answer
288
views
TFS include files and folders within the Delete Files Task
I need to use the 'Delete files' task in a VNext build definition (TFS 2018). after 'Publish Artifact' task I am using the 'Delete File' task to delete all the files and folder in the drop folder but ...
-1
votes
1
answer
287
views
Planning to Move TFS (Team Foundation Server 2013) from existing domain to new domain
I am planning to move my current TFS (Team Foundation Server 2013) environment from one domain to another domain, currently I am reading Microsoft articles on moving but i am planning to clone the ...