Hi, Thank you and sorry for this long delay. At the end, my requirements evolved and I should not use the R plugin for my work because I need to be able to choose which R Version I will run; moreover it's better to create a plugin so that I can have a perfect match with our needs (the scripts are interdependants) . Therefore, the combination of the R plugin with Scriptler will not work :s.
On Saturday, July 2, 2016 at 12:21:38 AM UTC+2, kinow wrote: > Hi Michael, > > Was going to reply but Alex was faster. > > Let me know if you need any help with the R Plug-in too. I want to > investigate making Scriptler support R scripts too. This way plug-ins that > use Scriptler scripts would automatically support R too (e.g. > active-choices :) ). Another idea is perhaps integrate Shiny with Jenkins. > > Feel free to shoot an e-mail here or off-list in case you need anything. > > Cheers > Bruno > > ------------------------------ > *From:* Alexandru Somai <[email protected] <javascript:>> > *To:* Jenkins Developers <[email protected] <javascript:>> > *Sent:* Saturday, 2 July 2016 12:56 AM > *Subject:* Re: R Plugin dependency > > Hi, > > To answer your question, I think that the correct groupId for the R plugin > is org.biuno.r, so the dependency would be: > > <dependency> > <groupId>org.biouno.r</groupId> > <artifactId>r</artifactId> > <version>0.2</version> > </dependency> > > > But I don't know, isn't an easier way to achieve what you need? without > writing a new plugin? Just a thought. > > Regards, > Alex > > On Friday, July 1, 2016 at 1:23:36 PM UTC+3, [email protected] wrote: > > Hello, > > I am creating my first own plugin to have a common build step across my > different jobs. Many of my jobs are running the same script (build, deploy > artifacts, test...) and I want to unify that. > This script is written in R and therefore I would like to run this R > script in my own plugin. There is already a R Plugin > <https://wiki.jenkins-ci.org/display/JENKINS/R+Plugin> that is usefull to > write our own script in the job, therefore I would like to use this R > plugin to run my R scripts inside my plugin. I saw that the first step is > to have it as a dependency. How can I add it as a dependency in pom.xml? > > I tried to write that in *pom.xml*: > > <repositories> > <repository> > <id>repo.jenkins-ci.org</id> > <url>http://repo.jenkins-ci. org/public/ > <http://repo.jenkins-ci.org/public/></url> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>repo.jenkins-ci.org</id> > <url>http://repo.jenkins-ci. org/public/ > <http://repo.jenkins-ci.org/public/></url> > </pluginRepository> > </pluginRepositories> > > > <dependencies> > <dependency> > <groupId>org.jenkins-ci. plugins</groupId> > <artifactId>r</artifactId> > <version>0.2</version> > </dependency> > </dependencies> > > > But it is not working, I have this error when I run *mvn hpi:run* in my > plugin directory: > > [ERROR] Failed to execute goal on project michaelPlugin: Could not > resolve dependencies for project michaelPlugin:michaelPlugin: > hpi:1.0-SNAPSHOT: Failed to collect dependencies at > org.jenkins-ci.plugins:r:jar: 0.2: Failed to read artifact descriptor for > org.jenkins-ci.plugins:r:jar: 0.2: Could not transfer artifact > org.jenkins-ci.plugins:r:pom: 0.2 from/to central (https://repo.maven.apache. > org/maven2 <https://repo.maven.apache.org/maven2>): > sun.security.validator. ValidatorException: PKIX path building failed: > sun.security.provider. certpath. SunCertPathBuilderException: unable to > find valid certification path to requested target > > > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/b80a553a-9a97-45f7-9427-ca06e690b444%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/b80a553a-9a97-45f7-9427-ca06e690b444%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/37a2dc2a-ed4f-4dc2-8936-d2ad38099d73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
