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 ffdfd
• 5,550 points
724 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,300 points

Related Questions In DevOps & Agile

0 votes
0 answers

How to generate a list of every external URL accessed during docker build?

Is there an easy method to create ...READ MORE

Mar 16, 2023 in DevOps & Agile by Edureka
• 12,690 points
351 views
+5 votes
1 answer

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 27, 2018 in DevOps & Agile by Atul
• 10,240 points
3,391 views
0 votes
1 answer
0 votes
2 answers

How to build docker images using VS2017?

Open Visual Studio and create a new project. Select ASP.Net Core Web ...READ MORE

answered Aug 25, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,327 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
3,856 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,987 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,890 points
640 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 27, 2018 in DevOps & Agile by ajs3033
• 7,300 points

edited Oct 16, 2018 by Kalgi 4,763 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,300 points
1,887 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP