How to change state of TFS 2015 if build has warnings?

0 votes

I am using TFS 2015 UI to modify a build. I want the TFS build to be in failed state in case any warnings come up in the solution that is being built.

I was using this guide https://msdn.microsoft.com/en-us/library/dd647551(v=vs.120).aspx#template_create.

Here step 3 says that the Edit Build Definition will allow the user to download the existing build but it instead opens browser and allows OOTB editing

 enter image description here

Is there any way I can do this or any alternative?

May 4, 2018 in DevOps & Agile by Atul
• 5,530 points
84 views

1 answer to this question.

0 votes

To access the TFS Build Definition can access the IIRC through the database since you're using XAML buildl definition. You'll need to pull it out of the TFS configuration db.

I want the TFS build to be in failed state in case any warnings come up in the solution

You should try to edit the msbuild parameters inside the build definition and cause failure if warning comes up. This can be done through TreatWarningsAsErrors msbuild property

answered May 4, 2018 by ajs3033
• 7,280 points

Related Questions In DevOps & Agile

+5 votes
2 answers

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by Atul
• 10,240 points
299 views
0 votes
1 answer
0 votes
1 answer

How to fix the misconfiguration of DNS for python app?

Based on what you have mentioned in ...READ MORE

answered Dec 12, 2018 in DevOps & Agile by Damon Salvatore
• 5,510 points
121 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
1,050 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
215 views
0 votes
1 answer

TFS shows a / error when building app.

Seems like you haven't set the virtual ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,810 points
36 views
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 16, 2018 by Kalgi 716 views
0 votes
1 answer

How to simplify or automate task group creation in TFS?

You can easily import or export task ...READ MORE

answered Apr 25, 2018 in DevOps & Agile by ajs3033
• 7,280 points
296 views