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/</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.

-- 
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/820a52a8-596d-424a-b772-a2b500428351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: pom.xml
Description: XML document

Reply via email to