Open ulrik-nilsson opened 3 years ago
Is it able to dump out the non-JSON version on the build server?
It's most likely that some license fails to build an object graph, but I'm not sure how that'd be.
Alternatively, are you able to provide a list of PackageReference
's that are used?
Had to take it away from the build pipeline and will not have time to lock at it until next month, will come back to you then
I missed your second question last time, here are the PackageReferences:
<PackageReference Include="Avalonia" Version="0.8.0" />
<PackageReference Include="Avalonia.Desktop" Version="0.8.0" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.8.0" />
<PackageReference Include="CommandLineParser" Version="2.5.0" />
<PackageReference Include="Fody" Version="6.5.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="NSubsys" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="ReactiveUI.Fody" Version="13.2.18" />
<PackageReference Include="ReactiveUI.Validation" Version="1.1.1" />
I'll see if I can get the dump aswell
Thanks, I'll see if I can repo it myself
Found the reason now, the project failing wasnt built when it ran on Jenkins and therefore GetLockFile returned null.
Adding a null check and instructive error message could be helpful there, thanks for answering quickly anyways!
i get an unhandled exception in Jenkins running path/to/dotnet-delice.dll path/to/project.csproj --check-github --github-token github-token --check-license-content --refresh-spdx --json-output path/to/output/licenses.json -j
The same command works on my local machine. I have tried changing both csproj and output to paths I know is wrong and then I get other errors. I realize its something in our Jenkins environment that cause this but it would be nice to check the input values here and throw an Exception with more information.
I have looked at the code but are not enough familiar with F# to determine what cause the exception, do you have any idea what it could be?