Comments (4)
Hi @chrisfcarroll
Msbuild task is owned by ABTT team.
I just tagged them here. I hope they will get notify now about this issue.
from azure-pipelines-tasks.
This happens still,
Current agent version: '3.239.1'
...
##[error]Process 'msbuild.exe' exited with code ''.
Assuming this happens in azure-pipelines-tasks-lib (ToolFunctions.ps1):
Write-Verbose "Exit code: $LASTEXITCODE"
if ($RequireExitCodeZero -and $LASTEXITCODE -ne 0) {
Write-Error (Get-LocString -Key PSLIB_Process0ExitedWithCode1 -ArgumentList ([System.IO.Path]::GetFileName($FileName)), $LASTEXITCODE)
}
Is $LASTEXITCODE being unset really properly handled here?
When the process fails, the last project compiled looks like this with diagnostics on:
MyAssembly -> C:\TfsAgent\2\_work\1\b\MyAssembly.dll
##[debug]Processed: ##vso[task.logdetail id=a2d0fbce-2ff3-4051-933a-1b6bf83d692e;parentid=2f9f376e-54a7-4e8a-9111-009e62b62380;type=Build;result=Succeeded;finishtime=2024-08-06T12:59:55.6167709Z;progress=100;state=Completed;parentid=2f9f376e-54a7-4e8a-9111-009e62b62380;name=;]
##[debug]Processed: ##vso[task.logdetail id=2f9f376e-54a7-4e8a-9111-009e62b62380;parentid=6ebdce3e-7521-4440-9e33-5777f1abc1a5;type=Build;result=Succeeded;finishtime=2024-08-06T12:59:55.6167709Z;progress=100;state=Completed;parentid=6ebdce3e-7521-4440-9e33-5777f1abc1a5;name=;]
##[debug]Exit code:
##[debug]Error record:
##[debug]Invoke-VstsProcess : Process 'msbuild.exe' exited with code ''.
##[debug]At C:\TfsAgent\2\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\node_modules\azure-pipelines-tasks-msbuildhelpers\InvokeFunctions.ps1:126 char:17
##[debug]+ ... Invoke-VstsProcess -FileName $MSBuildPath -Arguments $arg ...
##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##[debug] + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
##[debug] + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-VstsProcess
##[debug]
##[debug]Script stack trace:
##[debug]at Invoke-Process, C:\TfsAgent\2\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\ps_modules\VstsTaskSdk\ToolFunctions.ps1: line 217
##[debug]at Invoke-MSBuild, C:\TfsAgent\2\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\node_modules\azure-pipelines-tasks-msbuildhelpers\InvokeFunctions.ps1: line 126
##[debug]at Invoke-BuildTools, C:\TfsAgent\2\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\node_modules\azure-pipelines-tasks-msbuildhelpers\InvokeFunctions.ps1: line 42
##[debug]at <ScriptBlock>, C:\TfsAgent\2\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.231.0\VSBuild.ps1: line 103
##[debug]at <ScriptBlock>, <No file>: line 1
##[debug]at <ScriptBlock>, <No file>: line 22
##[debug]at <ScriptBlock>, <No file>: line 18
##[debug]at <ScriptBlock>, <No file>: line 1
##[debug]Exception:
##[debug]Microsoft.PowerShell.Commands.WriteErrorException: Process 'msbuild.exe' exited with code ''.
##[error]Process 'msbuild.exe' exited with code ''.
##[debug]Processed: ##vso[task.logissue type=error]Process 'msbuild.exe' exited with code ''.
##[debug]Leaving Invoke-VstsProcess.
##[debug]Processed: ##vso[task.complete result=Failed]
##[debug]Processed: ##vso[task.logdetail finishtime=2024-08-06T12:59:55.8198861Z;id=6ebdce3e-7521-4440-9e33-5777f1abc1a5;progress=100;state=Completed;result=Failed]
##[debug]Leaving Invoke-MSBuild.
##[debug]Leaving Invoke-BuildTools.
##[debug]AGENT_VERSION: '3.239.1'
from azure-pipelines-tasks.
Could this be something that only happens on self-hosted agents?
I'm using self-hosted agents, and it looks to me that OP is too.
from azure-pipelines-tasks.
@DenisRumyantsev , @v-schhabra : my apologies for @-ing you but it looks like this has been triaged into Azure:Artifacts by a bot, where it is receiving no attention perhaps because it is not related to artifacts ?
from azure-pipelines-tasks.
Related Issues (20)
- [enhancement]: HOT 1
- [Question]: Azure SQL Database Deployment: How to use Active Directory - Integrated authentication HOT 2
- [BUG]: Cache@2 post-job task fails with cache miss. HOT 2
- [BUG]: Download build artifacts (1.220.0/2.198.0) is failing with error "System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.." HOT 3
- [REGRESSION]: NuGetAuthenticate failing when updating existing credentials HOT 1
- [BUG]: AzureCli task fails to authenticate to service connection when multiple managed identities are assigned. HOT 1
- [BUG]: ##[error]Dotnet command failed with non-zero exit code on the following projects- (SOLVED through logs) HOT 1
- [Question]: Azure Pipeline how to do vercel deployment? HOT 9
- [REGRESSION]: DotNetCoreCLI - Restore with external feed does not properly authenticate anymore HOT 5
- [BUG]: AzureFunctionAppV2 unable to set connectedServiceNameARM at run time. Fails with error, Input required: azureSubscription HOT 2
- [REGRESSION]: The nuget command failed with exit code(null) and error() HOT 45
- [enhancement]: Enable NuGetCommand publish with allowPackageConflicts for external package feeds
- [BUG]: Agent failed to download tasks / initialize HOT 11
- [BUG]: DownloadSecureFile - Object reference not set to an instance of an object HOT 1
- [REGRESSION]: npmAuthenticate silently fails authenticate to Azure Devops npm feeds HOT 7
- [BUG]: ##[error]Failed to download or parse release-index.json with error: {} HOT 2
- [BUG]: DockerCompose@1 not running on linux system HOT 5
- [BUG]: GithubRelease@1 cannot create release when pipeline is triggered by tag HOT 1
- [BUG]: NuGetAuthenticate@1 doesnot properly escape URL in VSS_NUGET_URI_PREFIXES causing authentication errors HOT 1
- [enhancement]: FuncToolsInstaller@0: Use win-x64 for Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.