TFS中的空构建工件 [英] Empty build artifacts in TFS
问题描述
您好
我在TFS中有一个构建定义,步骤如下:
- NuGet restore
- Visual Studio Build
- Publish Build Artifacts
MSBuild参数in Visual Studio Build步骤如下:
/ p:DeployOnBuild = true / p:WebPublishMethod = Package / p:PackageAsS ingleFile = true / p:SkipInvalidConfigurations = true / p:PackageLocation =" $(Build.StagingDirectory)\\"
构建成功,但当我查看文物时,它是空的
log:
2017-04-04 ## [警告]目录"c:\\ \\ item \_work \\\\ a"为空。不要添加到生成的"放弃"项目内容中。
TFS:2017Express(版本15.112.26307.0)
服务器:Windows Server2012 R2标准版
提前致谢!
嗨flyReaver,
请访问构建服务器"c:\agent\_work\2\ a"文件夹,检查它是否为空。
在构建步骤中生成包,它将发布到您的c:\\\ tntant \_work \\\ a文件夹。请查看构建步骤日志,您能找到与我类似的日志吗?
2017-04-05T07:15:48.3914681Z成功执行了Web部署任务。
2017-04-05T07 :15:48.3914681Z包装"YanProjectAgile.zip"在以下位置成功创建为单个文件:
2017-04-05T07:15:48.3914681Z file:/// D:/ TFSTools /剂/ _work / 5 / A
Hi
I have a build definition in TFS with the following steps:
- NuGet restore
- Visual Studio Build
- Publish Build Artifacts
The MSBuild arguments in the Visual Studio Build step are as follows
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.StagingDirectory)\\"The build succeeds, but when I look in the Artifacts, it's empty
log:
The 2017-04-04 ##[warning] directory "c:\agent\_work\2\a" is empty. Not to be added to the generated "drop" the content of the project.
TFS: 2017Express(Version 15.112.26307.0)
Server:Windows Server2012 R2 Standard
Thanks in advance!
解决方案Hi flyReaver,
Please get access to the build server "c:\agent\_work\2\a" folder, check whether it is empty.
The Package is generated during build step, it will be publish to your c:\agent\_work\2\a folder. Please check the build step log, could you find some similar log as mine?
2017-04-05T07:15:48.3914681Z Successfully executed Web deployment task.
2017-04-05T07:15:48.3914681Z Package "YanProjectAgile.zip" is successfully created as single file at the following location:
2017-04-05T07:15:48.3914681Z file:///D:/TFSTools/agent/_work/5/a
这篇关于TFS中的空构建工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文