How to plot graph using Jenkins Plugins with having my own X and Y axis values and labels?

1,126 views
Skip to first unread message

ashok alluri

unread,
May 22, 2015, 1:17:05 AM5/22/15
to jenkins...@googlegroups.com
I have Jenkins job running which reads the data from external DB (not local to Jenkins server), I want to plot this data (both X and Y axis values are read from DB) using Jenkins Plugins. I am finding difficulty with Plot plugin as it's X-axis value is always build number, is there anyway that I can plot my data against my own x-axis values?

Ioannis Moutsatsos

unread,
Jun 11, 2015, 6:34:50 AM6/11/15
to jenkins...@googlegroups.com
No, the Plot plugin is rather inflexible. 

I use R and the R-plugin to plot my data anyway I want.
Then it is very easy to display the generated graphics from R either in a custom report (using either the HTML Publisher or Summary Display plugins) or by just archiving the png or pdf files generated from R.


Hope this helps
Ioannis

Ashwitha H N

unread,
May 20, 2016, 2:30:05 AM5/20/16
to Jenkins Users
Hi

Am trying to run an Rscript on jenkins and have referred the http://biouno.org/tutorials/using-the-jenkins-r-plugin.html link for same.

when i Build the job i get the following error
 
Building in workspace /var/lib/jenkins/workspace/r_exam
[r_exam] $ Rscript /tmp/hudson4474744031922939678.R
FATAL: command execution failed
java.io.IOException: Cannot run program "Rscript" (in directory "/var/lib/jenkins/workspace/r_exam"): error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
	at hudson.Proc$LocalProc.<init>(Proc.java:240)
	at hudson.Proc$LocalProc.<init>(Proc.java:212)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
	at hudson.Launcher$ProcStarter.start(Launcher.java:381)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
	at hudson.model.Build$BuildExecution.build(Build.java:205)
	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)

Could you please help me resolve this

Anderson Goulart

unread,
May 20, 2016, 11:27:23 AM5/20/16
to jenkins...@googlegroups.com

It seems that R is not installed in the build node.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/42a45d92-1561-445e-b990-efb204ad0909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages