我正在尝试使用ReadyRoll设置Jenkins构建项目。它大部分都在工作,但我收到的警告与我有关:
MSBUILD : OctoPack warning OCTNOENT: The source file 'c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\bin\Release\' does not exist, so it will not be included in the package [c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\CoreServices.sqlproj]
MSBUILD : OctoPack warning OCTNOENT: The source file 'c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\obj\Release\CoreServices_Package.sql' does not exist, so it will not be included in the package [c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\CoreServices.sqlproj]
我搜索了有关此错误的信息,但没有发现任何有用的信息。当我在构建完成后检查构建服务器时,它所说的文件夹和文件确实存在。这意味着我在这里会出现某种操作错误,但我不知道会发生在何处或如何发生。
以下是生成警告的日志部分:
OctoPack:
Using package version: 8.6.26
OctoPack: OctoPack version: 3.6.1.0
OctoPack: Written files: 10
OctoPack: Copy file: c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\obj\Release\CoreServices.nuspec
OctoPack: Packaging a console or Window Service application (no Web.config detected)
OctoPack: Add binary files
OctoPack: Added file: CoreServices_Package.sql
OctoPack: Added file: CoreServices_DeployPackage.ps1
OctoPack: Added file: CoreServices_Snapshot.nupkg.bin
MSBUILD : OctoPack warning OCTNOENT: The source file 'c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\bin\Release\' does not exist, so it will not be included in the package [c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\CoreServices.sqlproj]
OctoPack: Added file: Deploy.ps1
OctoPack: Added file: DeployFailed.ps1
MSBUILD : OctoPack warning OCTNOENT: The source file 'c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\obj\Release\CoreServices_Package.sql' does not exist, so it will not be included in the package [c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\CoreServices.sqlproj]
OctoPack: Added file: CoreServices.dll
OctoPack: Added file: CoreServices.pdb
OctoPack: NuGet Version: 3.5.0.38733 (Custom build for OctoPack. See http://g.octopushq.com/VersioningInOctopusDeploy)
OctoPack: Attempting to build package from 'CoreServices.nuspec'.
OctoPack: Successfully created package 'c:\scm01-jenkins\workspace\DatabaseDeploys\DatabaseDeploys\CoreServices\obj\octopacked\IC_CoreServices.Database.8.6.26.nupkg'.
以下是MSBuild参数:
/ t:Clean,Build /p:Version=8.6.26.0;Configuration=Release / p:GenerateSqlPackage = True / p:ShadowServer = [shadowdatabasename] / p:RunOctoPack = true /p:OctoPackPackageVersion=8.6.26 / p:OctoPackPublishPackageToHttp = http://[OctopusDeployServer]/nuget/packages / p:OctoPackPublishApiKey = [key]
任何想法如何解决这个问题?
谢谢。
答案 0 :(得分:2)
不幸的是,这是ReadyRoll与OctoPack集成的一个已知问题,但警告是无关紧要的,可以安全地忽略。
要取消警告,请将以下内容添加到MSBuild参数:
/nowarn:OCTNOENT
问题解决后我会更新此答案(1003)。
对此的修复已作为ReadyRoll 1.16.18100的一部分发布;在构建期间不应再显示OctoPack警告。