VSTS Build failes when triggered by Zapier

喜欢而已 提交于 2019-12-12 03:17:24

问题


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


来源:https://stackoverflow.com/questions/34841780/vsts-build-failes-when-triggered-by-zapier

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!