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

Plots from CSV files do not work with matrix / multi-configuration builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • plot-plugin
    • None

      Plots from CSV files do not seem to work with matrix builds. No matter how I specify the "Data series file", I don't see any plots being generated. It's a bit inconvenient to debug this as the build will not fail if the specified "Data series file" does not exist. There's only a dynamic "tool tip" displayed by Jenkins below the text field if the file does not exist at the time of filling in the "Data series file" field.

      As an example see the job at [1]. Usually, I would expect the file to be looked up relative to the matrix child workspace. That is, if I have a matrix job with two "FLAVOR"s called "debug" and "release", the child workspaces WRT the parent workspace are at "$PARENT_WORKSPACE/FLAVOR/debug" [2] and "$PARENT_WORKSPACE/FLAVOR/release" [3]. If I now specify "data.csv" as the "Data series file", it should be looked up at "$PARENT_WORKSPACE/FLAVOR/debug/data.csv" and "$PARENT_WORKSPACE/FLAVOR/release/data.csv", respectively.

      But obviously that's not the way it works as if I just enter "data.csv" I get the aforementioned "tool tip" saying "‘data.csv’ doesn’t match anything, but ‘FLAVOR/debug/data.csv’ does. Perhaps that’s what you mean?". However, entering "FLAVOR/debug/data.csv" also does not work. While it makes the error "tool tip" go away, there still is no plot. Besides that, hard-coding the path that way would not work for the "release" flavor.

      My guess is that some code parts of the plugin assume "data.csv" to be relative to the parent workspace root, while other code parts assume "data.csv" to be relative to the child workspace root. At least there's some inconsistency.

      Maybe it makes sense to look at the alternative matrix job implementation at [4] and [5] again to see whether they would work / what they do differently?

      To double-check against any issues on my side, I've also configured a simple (non-matrix) job at [6] which is working fine.

      [1] http://mingwgitdevenv.cloudapp.net/view/Playground/job/plot-matrix
      [2] http://mingwgitdevenv.cloudapp.net/view/Playground/job/plot-matrix/ws/FLAVOR/debug/
      [3] http://mingwgitdevenv.cloudapp.net/view/Playground/job/plot-matrix/ws/FLAVOR/release/
      [4] https://github.com/jenkinsci/plot-plugin/pull/5
      [5] https://github.com/jenkinsci/plot-plugin/pull/6
      [6] https://mingwgitdevenv.cloudapp.net/view/Playground/job/plot-simple/

            nidaley nidaley
            sschuberth Sebastian Schuberth
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: