简体   繁体   English

发布管理服务器手动成功,但自动失败

[英]Release management server succeeds manual, but fails automated

I'm trying to configure release management server to deploy to out test server when a specific build configuration on TFS succeeds. 我正在尝试配置发布管理服务器,以在TFS上的特定构建配置成功时部署到测试服务器之外。 Now I have a build definition which runs fine, I use the build process template 'ReleaseTfvcTemplate.12.xaml'. 现在,我有了一个运行良好的生成定义,我使用了生成过程模板'ReleaseTfvcTemplate.12.xaml'。

The 'Release Template' in Release Management Server (RMS) is set to trigger on build. 版本管理服务器(RMS)中的“发布模板”设置为在构建时触发。

Now when I set the 'Release Build' property in the Release category to 'False', the build runs fine. 现在,当我在Release类别中将“ Release Build”属性设置为“ False”时,该构建运行良好。 Then when I go the Release Management Client and create a release, everything goes fine and my project (a WebAPI) is succesfully published to our testserver. 然后,当我进入发布管理客户端并创建发布时,一切正常,我的项目(WebAPI)成功发布到我们的测试服务器。

As soon as I set the 'Release build' property to true (in the build definition) and queue a new build, the build fails. 一旦将“ Release build”属性设置为true(在构建定义中)并排队一个新的构建,构建就会失败。

I receive the following error : 我收到以下错误:

Exception Message: The directory name is invalid (type Win32Exception) Exception Stack Trace: Server stack trace: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.ProcessWrapper.Start() at Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.InvokeProcessInternal.RunCommand(AsyncState state) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) 异常消息:目录名称无效(类型为Win32Exception)异常堆栈跟踪:服务器堆栈跟踪:位于Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.ProcessWrapper.Start()上的System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)在Microsoft.TeamFoundation.Build.Workflow.Activities.InvokeProcess.InvokeProcessInternal.RunCommand(AsyncState状态)在System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,对象服务器,Object []&outArgs)在System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage消息,IMessageSink答复Sink)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at System.Func 2.EndInvoke(IAsyncResult result) at System.Activities.AsyncCodeActivity 1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) 在[0]处引发异常:在System.Func 2.EndInvoke(IAsyncResult result) at System.Activities.AsyncCodeActivity处System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(对象未使用,MessageData和msgData)在System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(消息reqMsg,布尔值bProxyCase)处抛出异常2.EndInvoke(IAsyncResult result) at System.Activities.AsyncCodeActivity 1.System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExmarkutor处)

The build template includes a xcopy step which may cause the "The directory name is invalid", but I don't understand why the process works manually, but not automated. 构建模板包括一个xcopy步骤,该步骤可能会导致“目录名称无效”,但是我不明白为什么该过程是手动进行的,而不是自动化的。

Any suggestions in the right direction are very welcome! 我们欢迎任何正确方向的建议!

确保在构建代理计算机上安装了RM Client。

Sometimes the release template can 'lose' its connection in to the build definition. 有时,发布模板可以将其连接“丢失”到构建定义中。 To check this open the release template and use the Properties link to re-establish the connection to the build definition. 要进行检查,请打开发行模板,然后使用“属性”链接重新建立与构建定义的连接。 In case it helps I have a soup to nuts blog post series on configuring all this - index page here . 以防万一, 在这里配置所有此索引页面时,我会提供大量博客文章,以供参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM