Issue Type: Bug Bug
Affects Versions: current
Assignee: nidaley
Components: plot
Created: 17/Jul/14 2:29 PM
Description:

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/

Project: Jenkins
Priority: Major Major
Reporter: Sebastian Schuberth
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to