withMaven dependency trigger - Need help to understand the error message

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

withMaven dependency trigger - Need help to understand the error message

Dan Tran
Hi 

I am trying to get an upstream to trigger downstream project using snapshot trigger. My upstream logs the following message

   [withMaven] Not triggering xxxxxx because it has dependencies in the downstream project list

Could some one explain what it really mean?

'xxxxxxx'  is my downstream project, looks like I have he right setup where a maven module of a downstream project depends on other maven module to the upstream project

Thanks

-Dan

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a3f59835-acb4-4967-8e0c-d65b839f3827%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

withMaven dependency trigger - Need help to understand the error message

Cyrille Le Clerc
Sample: projects framework, shared-lib and webapp.

Both shared-lib and webapp depend on framework and webapp also depend on shared-lib.

When framework build succeeds, it should trigger both shared-lib and webapp. But it's a "waste" to trigger webapp now because shared-lib will trigger "webapp" when it succeeds.

This is the message you get.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/78a2e901-16de-446d-8650-613f6d926bf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: withMaven dependency trigger - Need help to understand the error message

Dan Tran
Thanks for the explanation.  It is clear now

In my case, I downstream should be built regardless, but it is not.  

How can I troubleshoot this?

Thanks

-D

On Sunday, March 11, 2018 at 9:37:13 AM UTC-7, Cyrille Le Clerc wrote:
Sample: projects framework, shared-lib and webapp.

Both shared-lib and webapp depend on framework and webapp also depend on shared-lib.

When framework build succeeds, it should trigger both shared-lib and webapp. But it's a "waste" to trigger webapp now because shared-lib will trigger "webapp" when it succeeds.

This is the message you get.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6c66f0a8-42dd-4844-a6d3-5c4cf8682157%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: withMaven dependency trigger - Need help to understand the error message

Cyrille Le Clerc

> How can I troubleshoot this?

I discussed this feature with Arnaud Héritier today for another use case.

My understanding is that it is "work as design" and that you ask for an improvement to disable this JENKINS-46313 Avoid excessive triggering of downstream jobs capability.

Do you have the same understanding of the status? If so, can you please open an RFE ticket on Jira?

Cyrille

https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.4.3/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/listeners/DownstreamPipelineTriggerRunListener.java#L74

On Sunday, March 11, 2018 at 8:05:40 PM UTC+1, Dan Tran wrote:
Thanks for the explanation.  It is clear now

In my case, I downstream should be built regardless, but it is not.  

How can I troubleshoot this?

Thanks

-D

On Sunday, March 11, 2018 at 9:37:13 AM UTC-7, Cyrille Le Clerc wrote:
Sample: projects framework, shared-lib and webapp.

Both shared-lib and webapp depend on framework and webapp also depend on shared-lib.

When framework build succeeds, it should trigger both shared-lib and webapp. But it's a "waste" to trigger webapp now because shared-lib will trigger "webapp" when it succeeds.

This is the message you get.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b3696a8c-4d89-4aa2-9e23-5d8b8ca7dfd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: withMaven dependency trigger - Need help to understand the error message

Dan Tran
I believe I don't have the scenario that you described.  Mine is more like    Project A, B, and C   depends on D,   after D builds, A, B, and C are not built

So I need to troubleshoot, to see what I missed from my setup

-D

On Monday, March 12, 2018 at 9:00:20 AM UTC-7, Cyrille Le Clerc wrote:

> How can I troubleshoot this?

I discussed this feature with Arnaud Héritier today for another use case.

My understanding is that it is "work as design" and that you ask for an improvement to disable this <a href="https://issues.jenkins-ci.org/browse/JENKINS-46313" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-46313\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFKzGntSFHXvFPr8wOukDSHWOk9EA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-46313\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFKzGntSFHXvFPr8wOukDSHWOk9EA&#39;;return true;">JENKINS-46313 Avoid excessive triggering of downstream jobs capability.

Do you have the same understanding of the status? If so, can you please open an RFE ticket on Jira?

Cyrille

<a href="https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.4.3/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/listeners/DownstreamPipelineTriggerRunListener.java#L74" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-maven-plugin%2Fblob%2Fpipeline-maven-3.4.3%2Fjenkins-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fpipeline%2Fmaven%2Flisteners%2FDownstreamPipelineTriggerRunListener.java%23L74\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtgdO-3vxuTEJwiJcBJgINKNFA2Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-maven-plugin%2Fblob%2Fpipeline-maven-3.4.3%2Fjenkins-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fpipeline%2Fmaven%2Flisteners%2FDownstreamPipelineTriggerRunListener.java%23L74\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtgdO-3vxuTEJwiJcBJgINKNFA2Q&#39;;return true;">https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.4.3/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/listeners/DownstreamPipelineTriggerRunListener.java#L74

On Sunday, March 11, 2018 at 8:05:40 PM UTC+1, Dan Tran wrote:
Thanks for the explanation.  It is clear now

In my case, I downstream should be built regardless, but it is not.  

How can I troubleshoot this?

Thanks

-D

On Sunday, March 11, 2018 at 9:37:13 AM UTC-7, Cyrille Le Clerc wrote:
Sample: projects framework, shared-lib and webapp.

Both shared-lib and webapp depend on framework and webapp also depend on shared-lib.

When framework build succeeds, it should trigger both shared-lib and webapp. But it's a "waste" to trigger webapp now because shared-lib will trigger "webapp" when it succeeds.

This is the message you get.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b97a4a9f-4ae2-4ccf-bb93-13a983aec938%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: withMaven dependency trigger - Need help to understand the error message

Cyrille Le Clerc
Ack.

We need to improve the troubleshooting guide "Why my downstream job doesn't get triggered".

A SQL approach could be interesting but as our queries are no trivial, there would be a risk of misunderstanding. Maybe adding a troubleshooting API/GUI/CLI on the withMaven pipeline graph is the most efficient way.

Cyrille

On Tuesday, March 13, 2018 at 3:12:38 AM UTC+1, Dan Tran wrote:
I believe I don't have the scenario that you described.  Mine is more like    Project A, B, and C   depends on D,   after D builds, A, B, and C are not built

So I need to troubleshoot, to see what I missed from my setup

-D

On Monday, March 12, 2018 at 9:00:20 AM UTC-7, Cyrille Le Clerc wrote:

> How can I troubleshoot this?

I discussed this feature with Arnaud Héritier today for another use case.

My understanding is that it is "work as design" and that you ask for an improvement to disable this <a href="https://issues.jenkins-ci.org/browse/JENKINS-46313" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-46313\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFKzGntSFHXvFPr8wOukDSHWOk9EA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-46313\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFKzGntSFHXvFPr8wOukDSHWOk9EA&#39;;return true;">JENKINS-46313 Avoid excessive triggering of downstream jobs capability.

Do you have the same understanding of the status? If so, can you please open an RFE ticket on Jira?

Cyrille

<a href="https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.4.3/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/listeners/DownstreamPipelineTriggerRunListener.java#L74" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-maven-plugin%2Fblob%2Fpipeline-maven-3.4.3%2Fjenkins-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fpipeline%2Fmaven%2Flisteners%2FDownstreamPipelineTriggerRunListener.java%23L74\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtgdO-3vxuTEJwiJcBJgINKNFA2Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-maven-plugin%2Fblob%2Fpipeline-maven-3.4.3%2Fjenkins-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fjenkinsci%2Fplugins%2Fpipeline%2Fmaven%2Flisteners%2FDownstreamPipelineTriggerRunListener.java%23L74\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtgdO-3vxuTEJwiJcBJgINKNFA2Q&#39;;return true;">https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.4.3/jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/listeners/DownstreamPipelineTriggerRunListener.java#L74

On Sunday, March 11, 2018 at 8:05:40 PM UTC+1, Dan Tran wrote:
Thanks for the explanation.  It is clear now

In my case, I downstream should be built regardless, but it is not.  

How can I troubleshoot this?

Thanks

-D

On Sunday, March 11, 2018 at 9:37:13 AM UTC-7, Cyrille Le Clerc wrote:
Sample: projects framework, shared-lib and webapp.

Both shared-lib and webapp depend on framework and webapp also depend on shared-lib.

When framework build succeeds, it should trigger both shared-lib and webapp. But it's a "waste" to trigger webapp now because shared-lib will trigger "webapp" when it succeeds.

This is the message you get.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/44d60c5b-5295-4c7e-975d-e2363c2171b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.