Jenkins MSBUILD:错误MSB1009:项目文件不存在

时间:2020-06-29 16:38:23

标签: c# git jenkins msbuild

我正在尝试为我正在创建的测试项目设置测试jenkins构建。我尝试使用msbuild来构建指向sln文件的项目点,就像使用命令行一样。但是,当我尝试在Jenkins中执行此操作时,出现以下错误。

00:32:23从以下位置获取上游更改 https://github.com/umanga89/TestProject.git 00:32:23使用GIT_ASKPASS 设置凭据00:32:23> git.exe获取--tags --force --progress-https://github.com/umanga89/TestProject.git + refs / heads / :refs / remotes / origin / #timeout = 10 00:32:24> git.exe rev-parse“ refs / remotes / origin / master ^ {commit}“#timeout = 10 00:32:24

git.exe rev-parse“ refs / remotes / origin / origin / master ^ {commit}”#timeout = 10 00:32:24签出修订版 a04024299f82d9f680760713549d7c7370259f51(参考/远程/来源/主控) 00:32:24> git.exe配置core.sparsecheckout#超时= 10 00:32:24 git.exe签出-f a04024299f82d9f680760713549d7c7370259f51#超时= 10 00:32:26提交消息:“首次提交” 00:32:26> git.exe rev-list --no-walk a04024299f82d9f680760713549d7c7370259f51# 超时= 10 00:32:26 [TestProjectCSharp] $ powershell.exe -NonInteractive -ExecutionPolicy绕过-文件C:\ Windows \ TEMP \ jenkins1659839037280980907621.ps1 00:32:29路径 MSBuild.exe:C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \社区\ MSBuild \ Current \ Bin \ msbuild.exe 00:32:29 执行命令cmd.exe / C“ chcp 1252&” C:\ Program Files (x86)\ Microsoft Visual Studio \ 2019 \ Community \ MSBuild \ Current \ Bin \ msbuild.exe“ TestProjectAuto.sln“ &&从以下位置退出%% ERRORLEVEL %% C:\ Windows \ system32 \ config \ systemprofile \ AppData \ Local \ Jenkins.jenkins \ workspace \ TestProjectCSharp 00:32:29 [TestProjectCSharp] $ cmd.exe / C“ chcp 1252&” C:\ Program 文件(x86)\ Microsoft Visual Studio \ 2019 \ Community \ MSBuild \ Current \ Bin \ msbuild.exe“ TestProjectAuto.sln“ &&退出%% ERRORLEVEL %% 00:32:29有效代码 页面:1252 00:32:29 Microsoft(R)Build Engine版本 适用于.NET Framework的16.6.0 + 5ff7b0c9e 00:32:29版权所有(C)Microsoft Corporation。版权所有。 00:32:29 00:32:29 MSBUILD:错误 MSB1009:项目文件不存在。 00:32:29切换: TestProjectAuto.sln 00:32:29生成步骤'生成Visual Studio项目 或使用MSBuild的解决方案将生成标记为失败00:32:32已完成: 失败

我的詹金斯构建步骤如下。

enter image description here

然后我尝试使用来自github的下层项目,并在命令行中使用msbuild.exe pathtosln,并且遇到相同的错误。

有什么主意吗?

0 个答案:

没有答案
相关问题