我们正在使用Microsoft Release Management 2013部署到Dev/Test/Prod。Build/Deploy服务器是MS2012。应用程序服务器是MS2008。我已经让它工作并且成功部署,但昨天开始出现了以下错误信息。它只是使用“运行命令行”在应用程序服务器上运行一个批处理文件,备份,设置Windows服务启动类型,停止服务等。如果我直接在应用程序服务器上运行批处理文件,它就可以正常运行。我根据这篇文章添加了更详细的日志记录,但没有收集到额外的信息以进行调试。服务器上的Powershell也没有最近更新过。
有人知道*.ps1文件应该放在哪里吗?我在本地和服务器上搜索,但找不到任何东西。有人遇到过这种情况吗?
错误信息:
The term './RunCommandLine.ps1' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:21
+ ./RunCommandLine.ps1 <<<< -FilePath '\\unc-path\batchfile.bat' -Arguments ''
+ CategoryInfo : ObjectNotFound: (./RunCommandLine.ps1:String) [] , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException