In case of dotnet project,
-
package references for nuget and Telerik(nuget V3) are added in csproj/sln files in Bitbucket repository.
-
Those packages should be automatically installed on server where jenkins is installed through jenkins freestyle job (location where jenkins dotnet build command refers restored packages) .
Jenkins ->freestyle job → dotnet build is not restoring packages automatically.
And gives following error :
: error NU1301: Unable to load the service index for source https://nuget.telerik.com/v3/index.json. -
nuget.config file is added in bitbucket repository with package sources nuget.org , telerik v3.
-
Error can be solved by open solution file in visual studio → tools → Nuget package manager ->manage package solution → select package for source → install for the version.
How Can I solve(install package with specified version in csproj) 4th point using jenkins without using visual studio.