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

Jenkins builds broke with Jackson2 api plugin 2.15 (2.14 is ok)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • jackson2-api-plugin
    • None
    • Jenkins 2.404
      Jackson 2 API plugin 2.15.0-334.v317a_165f9b_7c
      Java bellsoft-jdk11.0.19+7-windows-amd64-full
    • 2.15.1-344.v6eb_55303dc3e

      In Jenkinsfile post-action create allure report

      post {
          always {
              allure includeProperties: false, jdk: '', results: [[path: 'out/syntax-check'],
                                                                  [path: 'out/smoke'],
                                                                  [path: 'out/allure']]
              junit allowEmptyResults: true, testResults: 'out/syntax-check-junit.xml'
              junit allowEmptyResults: true, testResults: 'out/smoke-junit.xml'
              junit allowEmptyResults: true, testResults: 'out/*.xml'
          }
      }

       

      Jenkins build not working after updating Jackson2 API plugin to version 2.15

      13:45:19  Error when executing always post condition:
      13:45:19  Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 1aa51f13-2249-4c9c-a157-0806ee837fbc
      13:45:19  com.fasterxml.jackson.core.exc.StreamConstraintsException: String length (5046272) exceeds the maximum length (5000000)
      13:45:19  	at com.fasterxml.jackson.core.StreamReadConstraints.validateStringLength(StreamReadConstraints.java:290)
      13:45:19  	at com.fasterxml.jackson.core.util.ReadConstrainedTextBuffer.validateStringLength(ReadConstrainedTextBuffer.java:27)
      13:45:19  	at com.fasterxml.jackson.core.util.TextBuffer.finishCurrentSegment(TextBuffer.java:931)
      13:45:19  	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString2(UTF8StreamJsonParser.java:2584)
      13:45:19  	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString(UTF8StreamJsonParser.java:2560)
      13:45:19  	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:335)
      13:45:19  	at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer._deserializeContainerNoRecursion(JsonNodeDeserializer.java:572)
      13:45:19  	at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:100)
      13:45:19  	at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:25)
      13:45:19  	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
      13:45:19  	at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4867)
      13:45:19  	at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3199)
      13:45:19  	at ru.yandex.qatools.allure.jenkins.utils.FilePathUtils.isHistoryNotEmpty(FilePathUtils.java:85)
      13:45:19  	at ru.yandex.qatools.allure.jenkins.utils.FilePathUtils.getPreviousReportWithHistory(FilePathUtils.java:70)
      13:45:19  	at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.addHistory(AllureReportPublisher.java:420)
      13:45:19  	at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.prepareResults(AllureReportPublisher.java:389)
      13:45:19  	at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:230)
      13:45:19  	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      13:45:19  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
      13:45:19  	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
      13:45:19  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      13:45:19  	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      13:45:19  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      13:45:19  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      13:45:19  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      13:45:19  	at java.base/java.lang.Thread.run(Thread.java:829) 

      Error in jackson-core-2.15.0.jar

      https://github.com/FasterXML/jackson-core/issues/1014

      Update required after module patch release

       

       

            alecharp Adrien Lecharpentier
            borisskin Boris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: