Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Team Foundation Server 2015 Customization

You're reading from   Team Foundation Server 2015 Customization Take your expertise to the next level by unraveling various techniques to customize TFS 2015

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785888199
Length 208 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gordon Beeming Gordon Beeming
Author Profile Icon Gordon Beeming
Gordon Beeming
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating a Dashboard and a Welcome Page FREE CHAPTER 2. Streamlining Your Teams' Boards 3. Customizing Your Process Template 4. Enhanced Work Item Forms with Field Custom Controls 5. The Guide Standards for Check-in Policies 6. Enforcing Standards with Server-Side Plugins 7. Customizing the TFS Build 8. Creating TFS Scheduled Jobs 9. Service Hooks 10. VSO Extensions Index

Registering, queueing, and deregistering a TFS job


If you try to install the job the way you used to in TFS 2013, you will now get the TF400444 error:

TF400444: The creation and deletion of jobs is no longer supported. You may only update the EnabledState or Schedule of a job. Failed to create, delete or update job id 5a7a01e0-fff1-44ee-88c3-b33589d8d3b3

This is because they have made some changes to the job service, for security reasons, and these changes prevent you from using the Client Object Model. You are now forced to use the Server Object Model.

The code that you have to write is slightly more complicated and requires you to copy your executable to multiple locations to get it working properly. Place all of the following code in your program.cs file inside the main method.

We start off by getting some arguments that are passed through to the application, and if we don't get at least one argument, we don't continue:

#region Collect commands from the args
if (args.Length != 1 &&amp...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime