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

UnsupportedOperationException getLogFile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins ver. 2.138.3
      Build Failure Analyzer 1.20.0
    • 1.23.0-beta-1

      Whenever the build failure analyser plug-in runs there will be several warnings in the Jenkins log "Avoid calling getLogFile on ..." because getLogFile is deprecated:

      https://javadoc.jenkins.io/plugin/workflow-job/org/jenkinsci/plugins/workflow/job/WorkflowRun.html#getLogFile--

       

      Nov 23, 2018 3:20:04 PM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finishTestWorkflow/TestWorkflow #362 completed: FAILURE
      Nov 23, 2018 3:20:04 PM WARNING org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFileAvoid calling getLogFile on TestWorkflow/TestWorkflow #362
      java.lang.UnsupportedOperationException
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.parseSingleLineCauses(BuildFailureScanner.java:426)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.access$000(BuildFailureScanner.java:77)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner$1.run(BuildFailureScanner.java:289)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      
      Nov 23, 2018 3:20:04 PM WARNING org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFileAvoid calling getLogFile on TestWorkflow/TestWorkflow #362
      java.lang.UnsupportedOperationException
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
      	at com.sonyericsson.jenkins.plugins.bfa.model.MultilineBuildLogFailureReader.scan(MultilineBuildLogFailureReader.java:92)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.findIndication(BuildFailureScanner.java:451)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.parseIndication(BuildFailureScanner.java:393)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.access$100(BuildFailureScanner.java:77)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner$2.run(BuildFailureScanner.java:306)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      
      Nov 23, 2018 3:20:04 PM WARNING org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFileAvoid calling getLogFile on TestWorkflow/TestWorkflow #362
      java.lang.UnsupportedOperationException
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)
      	at com.sonyericsson.jenkins.plugins.bfa.model.MultilineBuildLogFailureReader.scan(MultilineBuildLogFailureReader.java:92)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.findIndication(BuildFailureScanner.java:451)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.parseIndication(BuildFailureScanner.java:393)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner.access$100(BuildFailureScanner.java:77)
      	at com.sonyericsson.jenkins.plugins.bfa.BuildFailureScanner$2.run(BuildFailureScanner.java:306)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      
      

            timja Tim Jacomb
            gordin Christoph Vogtländer
            Votes:
            8 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: