Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking build termination on latest Jenkins #22

Closed
hach-que opened this issue Sep 21, 2017 · 8 comments
Closed

Breaking build termination on latest Jenkins #22

hach-que opened this issue Sep 21, 2017 · 8 comments

Comments

@hach-que
Copy link

I have the latest Jenkins, and at some point Periodic Reincarnation broke on a new version of Jenkins. Now when my builds finish, they end up in states like this, where they're technically finished, but still holding the slot on the slaves open:

image

image

image
^ The spinner is still going, even though the main build page doesn't show the build as "building".

The logs show this error:

A thread (PeriodicReincarnation thread/2813) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.checkProject(PeriodicReincarnation.java:325)
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.checkFolder(PeriodicReincarnation.java:353)
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.addProjectsFoundByPeriodicTriggerHit(PeriodicReincarnation.java:315)
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.execute(PeriodicReincarnation.java:115)
	at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:101)
	at java.lang.Thread.run(Thread.java:748)
@hach-que
Copy link
Author

Confirmed uninstalling 1.11 version of this plugin resolves the hanging builds issue.

@hach-que
Copy link
Author

Downgrading to 1.10 also resolves the issue, so it looks like this is just a problem with version 1.11.

@Jochen-A-Fuerbacher
Copy link
Member

Thanks for reporting this issue. I fixed the error of the log you provided. We could not reproduce the problem with the "hanging builds". So I'm not quite sure, if this fix resolves your issue. I'll release a new version soon. Please comment here if the problem is resolved or not.

@hach-que
Copy link
Author

That seems to have fixed the issue for me.

@krulls
Copy link

krulls commented Sep 27, 2017

@hach-que hach-que reopened this Sep 30, 2017
@hach-que
Copy link
Author

hach-que commented Sep 30, 2017

I'm seeing this issue again on 1.12, now with a different stack trace:

A thread (PeriodicReincarnation thread/40206) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.checkProject(PeriodicReincarnation.java:400)
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.checkFolder(PeriodicReincarnation.java:393)
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.addUnchangedProjects(PeriodicReincarnation.java:374)
	at org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation.execute(PeriodicReincarnation.java:117)
	at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:101)
	at java.lang.Thread.run(Thread.java:748)

@hach-que
Copy link
Author

(Again it's causing a build to not terminate correctly)

@Jochen-A-Fuerbacher
Copy link
Member

Thanks for reporting. Should be fixed in 1.12.1. Again, please report any issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants