我在构建过程中使用Octopus作为Package Application步骤。在高级选项下,我为包含文件指定了/bin/*.dll。但是,构建不会获取文件。如果我将include清空,它会拾取所有文件。语法无效,如此
/ bin中/ *。DLL
我也试过
仓/ *。DLL
但没有运气。知道什么可能是错的吗?
以下是构建步骤的屏幕截图...
以下是八达通包裹步骤的日志
2017-12-02T17:28:15.4090188Z ## [debug]评估步骤的条件: '打包MyProject' 2017-12-02T17:28:15.4090955Z ## [debug]评估: succeeded()2017-12-02T17:28:15.4091343Z ## [debug]评估 成功:2017-12-02T17:28:15.4092307Z ## [debug] => (布尔值)True 2017-12-02T17:28:15.4093048Z ## [debug] Expanded:True 2017-12-02T17:28:15.4093619Z ## [debug]结果:是的 2017-12-02T17:28:15.4095310Z ## [section]开始:打包MyProject 2017-12-02T17:28:15.4101223Z ================================================== ============================ 2017-12-02T17:28:15.4101741Z任务:包装申请 2017-12-02T17:28:15.4102147Z描述:打包您的应用程序 到NuPkg或Zip文件。 2017-12-02T17:28:15.4102500Z版本: 2.0.78 2017-12-02T17:28:15.4102834Z作者:Octopus Deploy 2017-12-02T17:28:15.4103263Z帮助:版本:2.0.78。 More Information 2017-12-02T17:28:15.4103847Z ================================================== ============================ 2017-12-02T17:28:15.4115642Z ## [debug] tf vc resolvePath $ \ MyParentFolder \ MyProject \ MyProject / loginType:OAuth /login:.,******** / noprompt 2017-12-02T17:28:15.8042302Z
[debug] C:\ a \ w \ 2 \ s \ MyParentFolder \ MyProject \ MyProject 2017-12-02T17:28:16.8462262Z ## [debug] VstsTaskSdk 0.6.4 commit
a074a158dbd70b5a72d1295ee42684c30a262b19 2017-12-02T17:28:16.9168209Z
[debug]输入C:\ a \ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \ Octopus-Pack.ps1。
2017-12-02T17:28:16.9521027Z ## [debug]环境:INPUT_PACKAGEID:' MyProject' 2017-12-02T17:28:16.9547735Z ## [debug]环境:INPUT_PACKAGEFORMAT:' NuPkg' 2017-12-02T17:28:16.9596389Z ## [debug]环境:INPUT_PACKAGEVERSION: ' 20171202.3' 2017-12-02T17:28:16.9645182Z
[debug]环境:INPUT_OUTPUTPATH:' C:\ a \ w \ 2 \ a' 2017-12-02T17:28:16.9645553Z ## [debug]环境:INPUT_SOURCEPATH:
' C:\ A \ W \ 2 \ S \ MyParentFolder \ MyProject的\ MyProject的' 2017-12-02T17:28:16.9651385Z ## [debug]环境:INPUT_NUGETAUTHOR:' MyBrand' 2017-12-02T17:28:16.9699352Z ## [debug]环境:INPUT_NUGETTITLE: ' MyParentFolder.B2BAccounts' 2017-12-02T17:28:16.9715752Z
[debug]环境:INPUT_NUGETDESCRIPTION:'我的服务' 2017-12-02T17:28:16.9729595Z ## [debug]环境:INPUT_NUGETRELEASENOTES
(空)2017-12-02T17:28:16.9786830Z
[debug]环境:INPUT_NUGETRELEASENOTESFILE:' C:\ a \ w \ 2 \ s' 2017-12-02T17:28:16.9812364Z ## [debug]环境:INPUT_OVERWRITE:' false'
2017-12-02T17:28:16.9843490Z ## [debug]转换为bool:False 2017-12-02T17:28:16.9868739Z ## [debug]环境:INPUT_INCLUDE:' ./ bin / .dll' 2017-12-02T17:28:16.9896116Z ## [debug] Env:INPUT_LISTFILES:' false' 2017-12-02T17:28:16.9914671Z ## [debug]转换为bool:False 2017-12-02T17:28:16.9947636Z未找到发行说明文件 2017-12-02T17:28:17.0153048Z ## [debug]输入Invoke-VstsTool。 2017-12-02T17:28:17.0269801Z ## [debug]文件名: ' C:\一个\ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \ Octo.exe' 2017-12-02T17:28:17.0289645Z ## [debug]参数:' pack --id =" MyProject的" --format = NuPkg --version = 20171202.3 --outFolder =" C:\ a \ w \ 2 \ a" --basePath =" C:\一个\ W \ 2 \ S \ MyParentFolder \ MyProject的\ MyProject的" --author =" RB" --title =" MyParentFolder.B2BAccounts" --description ="我的服务" --releaseNotes ="" --overwrite = False --include =" ./ bin / .dll"' 2017-12-02T17:28:17.0336805Z ## [debug] RequireExitCodeZero:' True' 2017-12-02T17:28:17.0375950Z
[命令]" C:\一个\ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \ Octo.exe"
pack --id =" MyProject" --format = NuPkg --version = 20171202.3 --outFolder =" C:\一个\ W \ 2 \ A" --basePath =" C:\一个\ W \ 2 \ S \ MyParentFolder \ MyProject的\ MyProject的" --author =" RB" --title =" MyParentFolder.B2BAccounts" --description ="我的服务" --releaseNotes ="" --overwrite = False --include =" ./ bin / * .dll" 2017-12-02T17:28:17.1287470Z Octopus Deploy命令行工具,版本 4.22.1 2017-12-02T17:28:17.1294636Z 2017-12-02T17:28:17.3764140Z包装MyProject版本" 20171202.3" ... 2017-12-02T17:28:17.3926084Z 保存" MyProject.20171202.3.nupkg"到" C:\ a \ w \ 2 \ a" ... 2017-12-02T17:28:17.4063617Z 2017-12-02T17:28:17.4063997Z System.InvalidOperationException:无法创建没有的包 依赖性和内容。 2017-12-02T17:28:17.4064229Z at NuGet.Packaging.PackageBuilder.Save(Stream stream) 2017-12-02T17:28:17.4064537Z at Octopus.Cli.Commands.NuGetPackageBuilder.BuildPackage(String basePath, IList`1包括ManifestMetadata元数据,String outFolder,Boolean overwrite,Boolean verboseInfo)2017-12-02T17:28:17.4064836Z at 。Octopus.Cli.Commands.PackCommand<> c__DisplayClass18_0.b__0() 2017-12-02T17:28:17.4065077Z at System.Threading.Tasks.Task.InnerInvoke()2017-12-02T17:28:17.4065264Z 在System.Threading.Tasks.Task.Execute()2017-12-02T17:28:17.4065487Z ---从抛出异常的前一个位置开始的堆栈跟踪结束--- 2017-12-02T17:28:17.4065866Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务 任务)2017-12-02T17:28:17.4066304Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务 任务)2017-12-02T17:28:17.4066598Z at Octopus.Cli.Program.Run(String [] args)2017-12-02T17:28:17.4067897Z 退出代码:-3 2017-12-02T17:28:17.4164951Z ## [debug]退出代码:-3 2017-12-02T17:28:17.4309447Z ## [debug]离开Invoke-VstsTool。 2017-12-02T17:28:17.4341893Z ## [debug]离开 C:\一个\ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \章鱼-Pack.ps1。 2017-12-02T17:28:17.4387076Z ## [debug]从任务中捕获异常 脚本。 2017-12-02T17:28:17.4420714Z ## [debug]错误记录: 2017-12-02T17:28:17.5138233Z ## [debug] Invoke-VstsTool:Process ' Octo.exe'退出代码' -3'。 2017-12-02T17:28:17.5149782Z
[debug]在C:\ a \ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \ Octopus-Pack.ps1:52
char:5 2017-12-02T17:28:17.5163924Z ## [debug] + Invoke-VstsTool -FileName $ octoPath -Arguments $ Arguments -Requir ... 2017-12-02T17:28:17.5176209Z ## [debug] +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ 2017-12-02T17:28:17.5189971Z ## [debug] + CategoryInfo: NotSpecified :( :) [Write-Error],WriteErrorException 2017-12-02T17:28:17.5202114Z ## [debug] + FullyQualifiedErrorId: Microsoft.PowerShell.Commands.WriteErrorException,调用,VstsTool 2017-12-02T17:28:17.6236509Z ## [调试] 2017-12-02T17:28:17.6456023Z[debug]脚本堆栈跟踪:2017-12-02T17:28:17.6456411Z ## [debug]在Invoke-Tool,
C:\一个\ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \ ps_modules \ VstsTaskSdk \ ToolFunctions.ps1: 第86行2017-12-02T17:28:17.6456866Z ## [debug] at, C:\一个\ w_tasks \ OctopusPack_179fac12-2402-486e-80cf-5a6a8571f7c0 \ 2.0.78 \章鱼-Pack.ps1: 第52行2017-12-02T17:28:17.6457192Z ## [debug] at,:第1行2017-12-02T17:28:17.6457473Z ## [debug] at, :第22行2017-12-02T17:28:17.6457737Z ## [debug] at ,:第18行2017-12-02T17:28:17.6458018Z
[debug] at,:line 1 2017-12-02T17:28:17.6458303Z ## [debug]异常:
2017-12-02T17:28:17.6458589Z
[debug] Microsoft.PowerShell.Commands.WriteErrorException:Process' Octo.exe'退出代码' -3'。 2017-12-02T17:28:17.6637507Z
[错误]处理' Octo.exe'退出代码' -3'。 2017-12-02T17:28:17.6637766Z ## [debug]已处理:## vso [task.logissue
type = error]处理' Octo.exe'退出代码' -3'。 2017-12-02T17:28:17.6644964Z ## [debug]已处理:## vso [task.complete 结果=失败] 2017-12-02T17:28:17.6965505Z ## [section]整理: 打包MyProject
答案 0 :(得分:1)
诀窍是使用像** /bin/*.dll这样的模式。双星将匹配任意数量的前面的文件夹。