Jenkins Pipeline job to support 'withMaven' step

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins Pipeline job to support 'withMaven' step

artiom.petrov
Hi all,
I'm trying to integrate a Pipeline job, while using 'withMaven' step - means I have a pom.xml file in that specific workspace.
This run is represented in the code as 'Workflow Run', and not as 'MavenModuleSetBuild' - which makes it difficult to go over the pom.xml file, and collect it's (transitive) dependencies.
My question is - is it possible to resolve somehow the pom.xml transitive dependencies, in a similar way to a MavenModuleSetBuild (Maven job) run?

Thanks in advance!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/73b5cc25-07ef-4a5b-8282-ea55bd1fa3b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline job to support 'withMaven' step

Cyrille Le Clerc
Hello,

I guess you are referring to the code of the jenkins whitesource plugin and referring to MavenOssInfoExtractor.java.

The withMaven plugin works quite differently from the MavenJob type, the way to list the dependencies is different and the documentation for plugins authors is not written (because the APIs are not finalized).

Would you have a moment for an hangout session so that I can walk you through the withMaven plugin architecture?



On Sunday, September 24, 2017 at 2:33:19 PM UTC+2, [hidden email] wrote:
Hi all,
I'm trying to integrate a Pipeline job, while using 'withMaven' step - means I have a pom.xml file in that specific workspace.
This run is represented in the code as 'Workflow Run', and not as 'MavenModuleSetBuild' - which makes it difficult to go over the pom.xml file, and collect it's (transitive) dependencies.
My question is - is it possible to resolve somehow the pom.xml transitive dependencies, in a similar way to a MavenModuleSetBuild (Maven job) run?

Thanks in advance!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7a3a9ed2-b662-4ff4-9ba5-bf121ac71dac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline job to support 'withMaven' step

Cyrille Le Clerc
Hi, If you are available around 10PST tomorrow, we could try to make this conversation public during the https://www.meetup.com/Jenkins-online-meetup/events/243555567/ .

Cyrille

On Monday, September 25, 2017 at 1:14:38 PM UTC+2, Cyrille Le Clerc wrote:
Hello,

I guess you are referring to the code of the jenkins whitesource plugin and referring to <a href="https://github.com/jenkinsci/whitesource-plugin/blob/release-tag-1.8.2/src/main/java/org/whitesource/jenkins/extractor/maven/MavenOssInfoExtractor.java" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fwhitesource-plugin%2Fblob%2Frelease-tag-1.8.2%2Fsrc%2Fmain%2Fjava%2Forg%2Fwhitesource%2Fjenkins%2Fextractor%2Fmaven%2FMavenOssInfoExtractor.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJOJ5EGxAM3OXZWMxzMjV0GMovAw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fwhitesource-plugin%2Fblob%2Frelease-tag-1.8.2%2Fsrc%2Fmain%2Fjava%2Forg%2Fwhitesource%2Fjenkins%2Fextractor%2Fmaven%2FMavenOssInfoExtractor.java\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJOJ5EGxAM3OXZWMxzMjV0GMovAw&#39;;return true;">MavenOssInfoExtractor.java.

The withMaven plugin works quite differently from the MavenJob type, the way to list the dependencies is different and the documentation for plugins authors is not written (because the APIs are not finalized).

Would you have a moment for an hangout session so that I can walk you through the withMaven plugin architecture?



On Sunday, September 24, 2017 at 2:33:19 PM UTC+2, artiom...@whitesourcesoftware.com wrote:
Hi all,
I'm trying to integrate a Pipeline job, while using 'withMaven' step - means I have a pom.xml file in that specific workspace.
This run is represented in the code as 'Workflow Run', and not as 'MavenModuleSetBuild' - which makes it difficult to go over the pom.xml file, and collect it's (transitive) dependencies.
My question is - is it possible to resolve somehow the pom.xml transitive dependencies, in a similar way to a MavenModuleSetBuild (Maven job) run?

Thanks in advance!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2362a9c2-f077-4d24-ba82-800aa113d2e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline job to support 'withMaven' step

artiom.petrov
Hi Cyrille,
Thanks for your reply, unfortunately, I wasn't able to answer due to holidays we had last week.
I was indeed talking about the MavenOssInfoExtractor.java class, and I would be more than happy to have a conversation about this issue and architecture.

Let me know if you have the time.

Thank you again!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2cc61293-30cf-4e39-8d79-d4f613ced587%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline job to support 'withMaven' step

Cyrille Le Clerc
FYI DM sent to schedule a call

On Saturday, September 30, 2017 at 9:55:25 AM UTC+2, [hidden email] wrote:
Hi Cyrille,
Thanks for your reply, unfortunately, I wasn't able to answer due to holidays we had last week.
I was indeed talking about the MavenOssInfoExtractor.java class, and I would be more than happy to have a conversation about this issue and architecture.

Let me know if you have the time.

Thank you again!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d207fc0f-bdfb-423f-b83c-268654d8cd69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline job to support 'withMaven' step

artiom.petrov
I contacted you on hangouts.

Thanks!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/86d8da6f-927d-4712-b465-e2211fae6294%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Pipeline job to support 'withMaven' step

Baptiste MATHUS
@Cyrille and @Artiom, if you feel like it, that would great if you can record it so that we can then make it available to more people on Youtube or so?

Thanks!

2017-10-03 10:39 GMT+02:00 <[hidden email]>:
I contacted you on hangouts.

Thanks!

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/86d8da6f-927d-4712-b465-e2211fae6294%40googlegroups.com.

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS4xyuoFPQtK7ivhd5qtkCrHNurdkdoPO5_YC84UPPWQ0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.