VSTS Build failes when triggered by Zapier

2019-09-12 08:08发布

问题:

I have build definition that builds using VSBuild. When triggered from web interface it works perfectly. But when triggered from Zapier it fails with following error:

[error]C:\TFSAgent_work\1\s\CityExpert.sln.metaproj(0,0): Error MSB4126: The specified solution configuration "CRMDev|any cpu" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.

But that configuration is in solution and is the same the manualy queued build uses. All configuration is the same, brench is the same. MSBuild command line switches in log - same.

回答1:

I found solution. It looks like a bug in VSTS.

Builds from Zapier are pulling master breach even when other one is configured as default.

Build details show 'devel' as default breach:

Build details
Definition CRMDev (edit)
Source branch devel
Source version
Requested by Boris Prpic
Queued Monday, January 18, 2016 7:42:41 PM
Started Monday, January 18, 2016 7:42:45 PM
Finished Monday, January 18, 2016 7:42:51 PM

But the logs show it is really pulling master:

2016-01-18T19:42:32.3257942Z Syncing repository: CRM (Git)
2016-01-18T19:42:32.3559010Z Starting fetch
2016-01-18T19:42:34.5759230Z Checking out refs/remotes/origin/master to C:\TFSAgent\_work\1\s
2016-01-18T19:42:34.6471116Z Checked out branch  for repository CRM at commit 40fe14218f9d6b7cfcf7e28fbd0cef507e6d37f6