Our call to archiveArtifacts fails with a java.lang.NullPointerException.
The call to archiveArtifacts is from inside a Jenkins shared library file
This is called from our pipeline script as follow:
This worked for quite a long time until recently and then it started failing.
If I look at the Build Artifacts of the job it seems like it did archive a lot of "licenses".
We have a preceding archiveArtifacts call that does not fail.
For now I have wrapped the call in a try-catch block and at least it does not fail the build anymore and it reports the exception in the log:
The build log output