Open NealOConnell opened 2 weeks ago
We're facing the same but with Self-Hosted pools based on ubuntu image. After forcing version 2.238.1 for nuget command step all has been working smoothly.
If I'm reading things correctly, release info implies that the latest release is v243: https://github.com/microsoft/azure-pipelines-tasks/releases
Did unstable builds that are still in development get published early?
Confirming same issue on MS Hosted systems - One is from a Scale set and the the other on any MS hosted. Downgrading this step to 2.238.1 is allowing builds to pass.
Confirming same issue on MS Hosted systems - One is from a Scale set and the the other on any MS hosted. Downgrading this step to 2.238.1 is allowing builds to pass.
I'm having trouble finding how to specify this version, could you give a hint please?
Edit: simple as this: - task: NuGetCommand@2.238.1
We are getting the same issue with the same version.
We have the same on a self-hosted VMSS
We have the same issue reverting to 2.238.1 solves the issue for now
Same here. The workaround to fix the task version to 2.238.1 is getting stuff running for now.
We are experiencing the same issue. Unfortunately it is on a classic pipeline where the task version can't be amended, beyond a dropdown containing "2., 1. 0.*". Currently we don't have the capacity to rebuild this pipeline using YAML. Is there a fix for this underway?
Same here on the classic pipeline woes, lack of ability to change versions means we had to run our nuget restore stuff in a script command instead, which I think will be an easy workaround for simple cases but probably not good for all.
I am having the same issue. When I change the version to 2.238.1 then it works
Same here on the classic pipeline woes, lack of ability to change versions means we had to run our nuget restore stuff in a script command instead, which I think will be an easy workaround for simple cases but probably not good for all.
How did you create script task? I have classic setup and looking to override the version with minimal work.
For me, this happens restoring nugets in a solution that has .NET Framework 4.8 projects. I'm not seeing the error in pipelines that have no framework projects. Pinning the version to 2.238.1 works around the issue for those pipelines affected.
It's happening in our builds as well, not all pipelines containing NuGet restore are affected by this regression. Not sure why some pipelines are passing and some not
Same here on the classic pipeline woes, lack of ability to change versions means we had to run our nuget restore stuff in a script command instead, which I think will be an easy workaround for simple cases but probably not good for all.
How did you create script task? I have classic setup and looking to override the version with minimal work.
I just created a Powershell task and had it run essentially the same command that the nuget restore task would run. You can look at a previous run and look at the top of the output to see what all the task options turn into as a CLI command and then just do some variable substitution.
It's happening in our builds as well, not all pipelines containing NuGet restore are affected by this regression. Not sure why some pipelines are passing and some not
We see the same behavior. Even within the same build run, most of our solutions are successfully restored by NuGet, while only one solution fails. The failed solution has thousands of packages to restore. Maybe this new NuGet cannot handle a large volume of packages.
Hey folks, apologies for the regression in behavior for the NuGetCommand
task -- we have finished a deployment that rolls back the latest version of the task to point to the previously working version of 2.238.1
(including classic YAML pipelines). Please feel free to let us know if you are still seeing issues when targeting the latest version of the NuGetCommand
task.
I can confirm that the issue doesn't appear anymore. When targeting the latest version of the NuGetCommand
it takes the 2.238.1
version by default.
Just now: our pipeline used version NuGet@2.245.3 and is failing once again.
Same here with 2.245.3 now being used and displaying the same issue.
Same on our side. Pipeline just stopped working.
Same
First observed failure for me was when after fetching 2.245.3 at 2024-09-09T09:07:43.9120785Z
Last observed success for me was after fetching 2.238.1 at 2024-09-09T08:46:47.0764253Z
Noticing that the project page currently shows v243 as the latest release.
https://github.com/microsoft/azure-pipelines-tasks
This raises some questions:
@cormacpayne - thanks for handling this relatively quickly 2 weeks ago. Can you offer any insights on why this task is getting so unstable?
Today it's getting the 2.238.1 version again and works.
Sorry its getting version 2.245.3 for us today and failing again with the same issue.
Our pipeline breaks because of new version 2.245.3. Works fine with 2.238.1. Our pipeline script:
...
Can you add regression test to catch this failure?
Do we have any workaround solutions for this kind of issue? Any script can help
Do we have any workaround solutions for this kind of issue? Any script can help
You can use a specific version of the NuGet command - see my comment from previous weeks way above.
Do we have any workaround solutions for this kind of issue? Any script can help
You can use a specific version of the NuGet command - see my comment from previous weeks way above.
What about users of the classic pipeline?
Do we have any workaround solutions for this kind of issue? Any script can help
You can use a specific version of the NuGet command - see my comment from previous weeks way above.
What about users of the classic pipeline?
You can create a ps script test as it works for me:
# Define paths for the solution and NuGet configuration
$solutionPath = ......
$nugetConfigPath = ....
# Check if NuGet is installed
if (-not (Get-Command nuget -ErrorAction SilentlyContinue)) {
Write-Error "NuGet is not installed or available in the PATH."
exit 1
}
# Restore NuGet packages for the solution
Write-Host "Restoring NuGet packages for solution $solutionPath using config $nugetConfigPath"
nuget restore $solutionPath -ConfigFile $nugetConfigPath
# Check for success or failure
if ($LASTEXITCODE -ne 0) {
Write-Error "NuGet restore failed."
exit $LASTEXITCODE
}
@cormacpayne our pipeline started to fail recently with this error. Has the issue been reintroduced?
Same exact situation here, classic pipelines so no quick workaround for us
For us it's YAML pipelines (but converted from classic, not sure if it matters) and started today. Using NuGetCommand@2.
For us it's YAML pipelines (but converted from classic, not sure if it matters) and started today. Using NuGetCommand@2.
As previously said, just use the specific version that doesn't have issues: NuGetCommand@2.238.1
instead of NuGetCommand@2
@leomoty, thanks, sorry, must have missed the comment.
We are also facing this issue with nuget restore, is there a way to to force the version to 2.238.1 when using classic pipeline ? We are also using private feeds, any script to run the nuget restore with private feeds using powershell ? Or any solution for this ?
@naresh-confirmtkt Use latest "Nuget Tool installer" step to version 6.11.0 It resolved the issue for classic pipelines.
@naresh-confirmtkt Use latest "Nuget Tool installer" step to version 6.11.0 It resolved the issue for classic pipelines.
I tried this but it didn't change anything
@naresh-confirmtkt Use latest "Nuget Tool installer" step to version 6.11.0 It resolved the issue for classic pipelines.
I tried this but it didn't change anything
You can check the version used by finding "NuGet Version: 6.11.0.119" in NuGet restore step. If the version is this one and still not working, I have no other solution to propose.
This is happening for us too, hundreds of pipelines (combination of classic and yml) are now failing with no easy workaround.
@naresh-confirmtkt Use latest "Nuget Tool installer" step to version 6.11.0 It resolved the issue for classic pipelines.
@nbouteiller Thank you, this had fixed the issue :)
Do we have any workaround solutions for this kind of issue? Any script can help
You can use a specific version of the NuGet command - see my comment from previous weeks way above.
What about users of the classic pipeline?
You can create a ps script test as it works for me:
# Define paths for the solution and NuGet configuration $solutionPath = ...... $nugetConfigPath = .... # Check if NuGet is installed if (-not (Get-Command nuget -ErrorAction SilentlyContinue)) { Write-Error "NuGet is not installed or available in the PATH." exit 1 } # Restore NuGet packages for the solution Write-Host "Restoring NuGet packages for solution $solutionPath using config $nugetConfigPath" nuget restore $solutionPath -ConfigFile $nugetConfigPath # Check for success or failure if ($LASTEXITCODE -ne 0) { Write-Error "NuGet restore failed." exit $LASTEXITCODE }
Thanks, I couldn't get anything else suggested here to work, but just replacing the broken step with a basic powershell step like this worked out
Hi guys,
For the classic pipeline users, create an Agent.Version variable in the pipeline with value 2.238.1 to force to use this version instead of the 2.245.3
Hi guys,
For the classic pipeline users, create an Agent.Version variable in the pipeline with value 2.238.1 to force to use this version instead of the 2.245.3
Seems it was not this fix that solved it, now I am always getting 2.238.1, even without the variable. Not sure.
This is happening for us too, hundreds of pipelines (combination of classic and yml) are now failing with no easy workaround.
it's working for me now, it looks like they reverted back to 2.238.1 again (both classic and yml)
This is happening for us too, hundreds of pipelines (combination of classic and yml) are now failing with no easy workaround.
it's working for me now, it looks like they reverted back to 2.238.1 again (both classic and yml)
I'm waiting for someone from Microsoft to chime on and state that they've rolled back 2.245.3.
Until Microsoft actually addresses this specific open issue, the current data set suggests to me that every new version of this task is going to include this same problem.
After a Microsoft dev reported that 2.244.1 was rolled back, I rolled back my own pipeline changes.
After 2.245.3 was published and revealed to include this same problem, I am sticking explicitly with 2.238.1 until this issue has been proven to be fixed. My teams simply cannot afford the disruption caused by this bug.
New issue checklist
Task name
NuGetCommand
Breaking task version
2.244.1
Last working task version
2.238.1
Regression Description
Builds just started failing with
The nuget command failed with exit code(null) and error()
.When comparing failed and successful builds, noticed that the within 'initialize job', all of the failed jobs were using this newer task version 2.244.1. After forcing the task back to 2.238.1, builds became successful again
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-latest
Relevant log output
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
SUCCESSFUL RUN
Repro steps