Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/jenkins
  Commit: ef378cc38d5b0c0e0065a64fcbd4faf8c5b95feb
      
https://github.com/jenkinsci/jenkins/commit/ef378cc38d5b0c0e0065a64fcbd4faf8c5b95feb
  Author: Markus Winter <[email protected]>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

  Changed paths:
    M core/src/main/java/hudson/tasks/ArtifactArchiver.java
    M test/src/test/java/hudson/tasks/ArtifactArchiverTest.java

  Log Message:
  -----------
  [JENKINS-71700] avoid stacktrace from artifactarchiver when no artifacts are 
found (#8908)

[JENKINS-71700] avoid stacktrace in artifactarchiver when no artifacts

When the validateAntFileMask fails because there are too many files or
it takes too long an exception is thrown that was intendend to be
catched in the ArtifactArchiver. But when the build happens on an agent
and not the built-in, this didn't work as the the exception is deeply
wrapped in 2 other exceptions.
As printing this information is of no real help, just catch all
exceptions and print them to the jenkins log but not the build log. Any
other message might just be misleading as one could get the impression
that jenkins stopped after looking at 10000 files and only because of
this no files where archived but this is not the case. At this place the
ArtifactArchiver is just trying to give a hint why it didn't archive
anything.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/jenkins/push/refs/heads/master/ddf68d-ef378c%40github.com.

Reply via email to