R Plugin dependency

51 views
Skip to first unread message

micha...@gmail.com

unread,
Jul 1, 2016, 6:23:36 AM7/1/16
to Jenkins Developers
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 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/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>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): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
 
Thank you.
pom.xml

Alexandru Somai

unread,
Jul 1, 2016, 8:56:44 AM7/1/16
to Jenkins Developers
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

Bruno P. Kinoshita

unread,
Jul 1, 2016, 6:21:38 PM7/1/16
to jenkin...@googlegroups.com
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 <somai.a...@gmail.com>
To: Jenkins Developers <jenkin...@googlegroups.com>
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, micha...@gmail.com 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 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>
    </repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
      <url>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): 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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/b80a553a-9a97-45f7-9427-ca06e690b444%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


micha...@gmail.com

unread,
Jul 18, 2016, 11:36:44 AM7/18/16
to Jenkins Developers, brunod...@yahoo.com.br
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.
Reply all
Reply to author
Forward
0 new messages