Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55421

Log File checker not aborting the pipeline even the size exceeds the limit

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.107.3
      Log File Checker plug in version : 1.4

      node('master'){
      wrap([$class: 'LogfilesizecheckerWrapper', 'maxLogSize': 1, 'failBuild': true, 'setOwn': true])

      { echo "do stuff" }

      stage("print"){
      while(true)

      { sh 'echo "Test"' }

      }

      }

       

      This script not get aborted by the LofileChecker even after reached more than 1mb of log.

       

       

          [JENKINS-55421] Log File checker not aborting the pipeline even the size exceeds the limit

          Mohamed Nazeer Mohamed Ibrahim created issue -
          Mohamed Nazeer Mohamed Ibrahim made changes -
          Description Original: node('master'){
           wrap([$class: 'LogfilesizecheckerWrapper', 'maxLogSize': 1, 'failBuild': true, 'setOwn': true]) {
           echo "do stuff"
           }
           stage("print"){
           while(true){
           sh 'echo "Test"'
           }
           
           }
           
          }

           

          This script not get aborting by the LofileChecker even after reached more than 1mb of log.

           

           
          New: node('master'){
           wrap([$class: 'LogfilesizecheckerWrapper', 'maxLogSize': 1, 'failBuild': true, 'setOwn': true])

          { echo "do stuff" }

          stage("print"){
           while(true)

          { sh 'echo "Test"' }

          }

          }

           

          This script not get aborted by the LofileChecker even after reached more than 1mb of log.

           

           
          Vladimir Eremeev made changes -
          Comment [ I'm observing the same issue.
          Log size limit set to 100Mb in global settings.
          Log of some failing freestyle job exceeds 1Gb, and the job is not aborted.

          Jenkins version 2.249.3
          Plugin version 1.4
          ]

            stefanbrausch Stefan Brausch
            mohamednazeer Mohamed Nazeer Mohamed Ibrahim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: