Warning during multi-branch Indexing

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

Warning during multi-branch Indexing

pallen
Hi Guys,

The p4-plugin shows a warning during multi-branch indexing when an old branch is being removed:


Oct 04, 2017 10:19:46 AM hudson.model.listeners.ItemListener forAll
WARNING: failed to send event to listener of class org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete
java.lang.NullPointerException
at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete.onDeleted(MilestoneStepExecution.java:348)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:205)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:203)
at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167)
at hudson.model.listeners.ItemListener.fireOnDeleted(ItemListener.java:203)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:949)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:135)
at hudson.model.AbstractItem.delete(AbstractItem.java:583)
at hudson.model.Job.delete(Job.java:687)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:198)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:139)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)


I'm not sure if this is just due to me testing on an old Jenkins (1.642.3) or if I have not implemented a cleanup method?

Kind regards,
Paul


--
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/e2717b91-0803-4621-b1da-80e327381218%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Warning during multi-branch Indexing

stephenconnolly
I think that is an issue in cloudbees-folders plugin

On 4 October 2017 at 03:02, pallen <[hidden email]> wrote:
Hi Guys,

The p4-plugin shows a warning during multi-branch indexing when an old branch is being removed:


Oct 04, 2017 10:19:46 AM hudson.model.listeners.ItemListener forAll
WARNING: failed to send event to listener of class org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete
java.lang.NullPointerException
at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete.onDeleted(MilestoneStepExecution.java:348)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:205)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:203)
at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167)
at hudson.model.listeners.ItemListener.fireOnDeleted(ItemListener.java:203)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:949)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:135)
at hudson.model.AbstractItem.delete(AbstractItem.java:583)
at hudson.model.Job.delete(Job.java:687)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:198)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:139)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)


I'm not sure if this is just due to me testing on an old Jenkins (1.642.3) or if I have not implemented a cleanup method?

Kind regards,
Paul


--
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/e2717b91-0803-4621-b1da-80e327381218%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/CA%2BnPnMzm_Ti4PQUsbcjxfgZ-CXNOTkTu8YXctq4toPy7hwjnnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Warning during multi-branch Indexing

stephenconnolly

On 4 October 2017 at 03:26, Stephen Connolly <[hidden email]> wrote:
I think that is an issue in cloudbees-folders plugin

On 4 October 2017 at 03:02, pallen <[hidden email]> wrote:
Hi Guys,

The p4-plugin shows a warning during multi-branch indexing when an old branch is being removed:


Oct 04, 2017 10:19:46 AM hudson.model.listeners.ItemListener forAll
WARNING: failed to send event to listener of class org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete
java.lang.NullPointerException
at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete.onDeleted(MilestoneStepExecution.java:348)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:205)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:203)
at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167)
at hudson.model.listeners.ItemListener.fireOnDeleted(ItemListener.java:203)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:949)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:135)
at hudson.model.AbstractItem.delete(AbstractItem.java:583)
at hudson.model.Job.delete(Job.java:687)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:198)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:139)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)


I'm not sure if this is just due to me testing on an old Jenkins (1.642.3) or if I have not implemented a cleanup method?

Kind regards,
Paul


--
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/e2717b91-0803-4621-b1da-80e327381218%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/CA%2BnPnMyOxffjSkhsMOspMb2tSZOp9TtuzDkbzhn8tZy4ABcxBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Warning during multi-branch Indexing

pallen
Thank you.

I'm still using workflow-aggregator:jar:2.5 and that was using pipeline-milestone-step 1.3.

During development I tend the run up the plugin with 'hpi:run' rather than installing it in a running Jenkins.

On 4 Oct 2017, at 11:29, Stephen Connolly <[hidden email]> wrote:


On 4 October 2017 at 03:26, Stephen Connolly <[hidden email]> wrote:
I think that is an issue in cloudbees-folders plugin

On 4 October 2017 at 03:02, pallen <[hidden email]> wrote:
Hi Guys,

The p4-plugin shows a warning during multi-branch indexing when an old branch is being removed:


Oct 04, 2017 10:19:46 AM hudson.model.listeners.ItemListener forAll
WARNING: failed to send event to listener of class org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete
java.lang.NullPointerException
at org.jenkinsci.plugins.pipeline.milestone.MilestoneStepExecution$CleanupJobsOnDelete.onDeleted(MilestoneStepExecution.java:348)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:205)
at hudson.model.listeners.ItemListener$4.apply(ItemListener.java:203)
at hudson.model.listeners.ItemListener.forAll(ItemListener.java:167)
at hudson.model.listeners.ItemListener.fireOnDeleted(ItemListener.java:203)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:949)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.onDeleted(AbstractFolder.java:135)
at hudson.model.AbstractItem.delete(AbstractItem.java:583)
at hudson.model.Job.delete(Job.java:687)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:198)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:139)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)


I'm not sure if this is just due to me testing on an old Jenkins (1.642.3) or if I have not implemented a cleanup method?

Kind regards,
Paul



--
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/e2717b91-0803-4621-b1da-80e327381218%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/CA%2BnPnMyOxffjSkhsMOspMb2tSZOp9TtuzDkbzhn8tZy4ABcxBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--------------------------------------------------------------------------------
Perforce Software UK Ltd is registered in England and Wales as company no.
3816019 at the following address: West Forest Gate,
Wellington Road, Wokingham,
RG40 2AT, UK
--------------------------------------------------------------------------------

--
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/9C861DF8-056F-4DC0-8AB0-1318AA3A1741%40perforce.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Warning during multi-branch Indexing

Jesse Glick-4
On Wed, Oct 4, 2017 at 7:06 AM, Paul Allen <[hidden email]> wrote:
> I'm still using workflow-aggregator:jar:2.5

I strongly advise against using `workflow-aggregator` as a
`test`-scoped dependency.

--
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/CANfRfr33sTWB%2B-t-U3PDwHL1Jdj%3DPxok-AYgAovrtr7us_aDcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Warning during multi-branch Indexing

pallen
I have removed the workflow-aggregator and added the few test dependancies to the POM.  All seems ok, although the version mix was tricky to satisfy and needed a few excludes...


I had to use a VERY OLD version of 'pipeline-model-definition' to satisfy the 'pipeline' DSL tests, it seems that a lot of dependancies were added after that release.

Thanks for the help.

Kind regards,
Paul


On 4 Oct 2017, at 17:27, Jesse Glick <[hidden email]> wrote:

On Wed, Oct 4, 2017 at 7:06 AM, Paul Allen <[hidden email]> wrote:
I'm still using workflow-aggregator:jar:2.5

I strongly advise against using `workflow-aggregator` as a
`test`-scoped dependency.

--
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/CANfRfr33sTWB%2B-t-U3PDwHL1Jdj%3DPxok-AYgAovrtr7us_aDcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--------------------------------------------------------------------------------
Perforce Software UK Ltd is registered in England and Wales as company no.
3816019 at the following address: West Forest Gate,
Wellington Road, Wokingham,
RG40 2AT, UK
--------------------------------------------------------------------------------

--
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/A76BA70F-27DC-4988-A4FD-A22D62C24DA7%40perforce.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Warning during multi-branch Indexing

Jesse Glick-4
On Thu, Oct 5, 2017 at 6:50 AM, Paul Allen <[hidden email]> wrote:
> the version mix was tricky to satisfy
> and needed a few excludes...
>
> https://github.com/jenkinsci/p4-plugin/commit/fb48f85b0dbcf817efa6e74e236268eaf3043ebb

I added some comments.

--
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/CANfRfr0%2BwBvs-Pb_AJbSaJ09_Uy%2B8FGMX07rUWmN25QtzJnNSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.