Spazmoose
Spazmoose

Reputation: 304

Why is TFS 2015 Scheduled Build not running?

We recently upgraded from TFS 2012 to TFS 2015, and have set up several build definitions using the vNext interface. Our build definitions are extremely simple, they consist of a single "Command Line" task, which performs all of our necessary work.

The builds execute properly when using a Gated Check-in, or when queuing manually, but our Scheduled (nightly at 6pm) builds do not execute as expected.

I have attempted granting permissions to the security user/groups that I believe are necessary to properly queue the build to no avail.

So, why is our TFS 2015 scheduled build not running?

Upvotes: 0

Views: 1073

Answers (2)

Spazmoose
Spazmoose

Reputation: 304

It appears that there is a bug in the TFS 2015 vNext build system. If you choose to create an "Empty" build on the "Create new build definition" window, as I did, the scheduled builds appear to not function properly.

To fix this, you can create a new "Visual Studio" build, then remove all of the tasks, then add your custom "Command Line" task.

Upvotes: 2

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51093

First, if your build agent and TFS server are not in the same machine, please try to set your TFS server and the build agent(the machine holding the agent) in the same time zone.

And modified one of the build definition to run at xx AM and waiting for it to see whether the build get triggered.

If it's still not work, double check Event viewer both on the TFS server and build agent any related info on the time when the build definition should be started. And you can also create a new scheduled build definition with same settings to try again.

Upvotes: 1

Related Questions