首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jenkins Freestyle构建中MSbuild中的解决路径错误

Jenkins Freestyle构建中MSbuild中的解决路径错误
EN

Stack Overflow用户
提问于 2020-12-18 21:35:54
回答 1查看 798关注 0票数 0

在Jenkins的Freestyle项目中使用MSBuild时,我有以下错误

我想要的工作流程如下:

(SUCCESS)

  • MSbuild
  • git将SLN复制到工作区
  • 中(显然失败)。
  • 一旦构建成功,将文件移动到网络映射的文件夹

中。

我已经安装了MSbuild插件,并将整个路径粘贴到SLN文件中,该文件在复制回购程序之后就存在了。

我做错了什么?

编辑:

以下是整个构建日志:

代码语言:javascript
复制
Building in workspace C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TAPPISAFE-Pipeline
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
using credential JenkinsGitbucket
Cloning the remote Git repository
Cloning repository https://agile.tappi.org/gitbucket/git/root/TAPPISAFE.git
 > git.exe init C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TAPPISAFE-Pipeline # timeout=10
Fetching upstream changes from https://agile.tappi.org/gitbucket/git/root/TAPPISAFE.git
 > git.exe --version # timeout=10
 > git --version # 'git version 2.11.1.windows.1'
using GIT_ASKPASS to set credentials Jenkins Gitbucket
 > git.exe fetch --tags --progress -- https://agile.tappi.org/gitbucket/git/root/TAPPISAFE.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git.exe config remote.origin.url https://agile.tappi.org/gitbucket/git/root/TAPPISAFE.git # timeout=10
 > git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
Checking out Revision 03661da9c578e2dfc33ca5594b3e16dd8cf0650a (refs/remotes/origin/master)
 > git.exe config core.sparsecheckout # timeout=10
 > git.exe checkout -f 03661da9c578e2dfc33ca5594b3e16dd8cf0650a # timeout=10
Commit message: "Merge pull request #1 from root/brenden-master"
 > git.exe rev-list --no-walk 03661da9c578e2dfc33ca5594b3e16dd8cf0650a # timeout=10
Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
Executing the command cmd.exe /C " chcp 1252 & C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe Tappisafe.Web.sln " && exit %%ERRORLEVEL%% from C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\TAPPISAFE-Pipeline
[TAPPISAFE-Pipeline] $ cmd.exe /C " chcp 1252 & C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe Tappisafe.Web.sln " && exit %%ERRORLEVEL%%
Active code page: 1252
Microsoft (R) Build Engine version 4.8.3761.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: Tappisafe.Web.sln
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
Finished: FAILURE```
EN

回答 1

Stack Overflow用户

发布于 2020-12-20 17:25:29

我通过将所有工作空间文件复制到我也可以编写的目录中来解决这个问题,并解决了问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65364215

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档