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

The presence of commons-csv-1.10.0.jar collides with other plugins

XMLWordPrintable

      We have pipeline-utility-steps plugin installed, and we use it to parse CSV files.

      54749 Mar 10  2023 plugins/pipeline-utility-steps/WEB-INF/lib/commons-csv-1.10.0.jar
      

      Recently, builds started breaking with:

      java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat
      

      In addition, there also were two requests for Script Approval on csv-related methods that have been approved a long time ago and working for a long time.

      After investigation, it turned out that another plugin that was installed recently (Performance) also has this:

      54749 May  3 08:51 plugins/performance/WEB-INF/lib/commons-csv-1.10.0.jar
      

      The both files are the same:

      9b3be74e726a151524bf31ec293ff285  plugins/pipeline-utility-steps/WEB-INF/lib/commons-csv-1.10.0.jar
      9b3be74e726a151524bf31ec293ff285  plugins/performance/WEB-INF/lib/commons-csv-1.10.0.jar
      

      Assumption is that Performance's jar file is loaded before the Utility-steps jar file.

      Issue was mitigated for now by removing Performance plugin.

            rsandell rsandell
            eplodn1 efo plo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: