Incident
Recently I encountered a build issue in a Jenkins job on a dot net project caused by the Dotnet SDK. The Jenkins environment was set up in an Ubuntu Box.
Strangely, this happened after Ubuntu package update performed using,
sudo apt-get update
Observations
Neither any issue thrown on build commands nor Jenkins build failed, but the application deployment was failing. While doing the further investigations, found out that the intended zip file got created, but was nearly empty (with few kbs) which was supposed to be few mb s ideally.
However in the Jenkins job, a warning message was noticed such as on command,
$ sudo dotnet restore
Found dotnet SDK, but did not find dotnet.dll at [/usr/share/dotnet/sdk/2.0.0/dotnet.dll]
Investigation
The DotNet version on the Jenkins environment was checked,
$ dotnet --version
Found dotnet SDK, but did not find dotnet.dll at [/usr/share/dotnet/sdk/2.0.0/dotnet.dll]
That means the installed Dotnet SDK seems corrupted, files missing or installation was not in proper order.
Resolution
The resolution seems straightforward, we have to perform a custom DotNet installation on the Ubuntu Box.
However it may not, as those DotNet SDK binaries are not available in regular Ubuntu Package repos.
...
No comments:
Post a Comment