I was running an older core and still had this problem. That's one
reason I upgraded to 1.591.1.
Here's the result for isBuilding:
Nov 03, 2015 5:24:57 PM com.redhat.jenkins.plugins.ci.CIPolarionExporter
perform
INFO: build.isBuilding = false
I am unable to call isInProgress.
-- Greg
On 11/03/2015 12:05 PM, Kanstantsin Shautsou wrote:
First idea - try run on other core versions, older/newer.
POST_PRODUCTION state for recorder looks wrong.
Try add build.isBuilding() and isInProgress() state print as first
step in perform.
On Tuesday, November 3, 2015 at 7:51:39 PM UTC+3, Kanstantsin Shautsou
wrote:
Sorry, missed attach, looking at it
On Tuesday, November 3, 2015 at 7:43:14 PM UTC+3, Greg Allen wrote:
I attached the entire file you requested to my last response.
Is there something else you are looking for?
On 11/03/2015 11:27 AM, Kanstantsin Shautsou wrote:
Could you cut internal code and keep skeleton (methods, class
inheritance, build monitor)?
On Nov 3, 2015, at 19:25, Greg Allen <[email protected]> wrote:
Unfortunately this repo is on an internal server. I've
attached the file though so you can see it.
-- Greg
On 11/03/2015 11:19 AM, Kanstantsin Shautsou wrote:
Could you provide link to code (CIPolarionExporter.java
<http://www.google.com/url?q=http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dcom.redhat.jenkins.plugins.ci.CIPolarionExporter.perform%26entity%3Dmethod&sa=D&sntz=1&usg=AFQjCNH1gBovL1uA4mgh25DIY8tr-yNHPg>)?
On Tuesday, November 3, 2015 at 7:07:02 PM UTC+3, Greg
Allen wrote:
I have implemented a Recorder and am attempting to set
the build status from it. However, when I do I get the
following exception:
java.lan
g.IllegalStat!
eException
<http://stacktrace.jenkins-ci.org/search?query=java.lang.IllegalStateException>:
cannot change build result while in POST_PRODUCTION
athudson.model.Run.setResult(Run.java:458)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.setResult&entity=method>
atcom.redhat.jenkins.plugins.ci.CIPolarionExporter.perform(CI!
PolarionEx
porter.java:355)
at
<http://www.google.com/url?q=http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%2F%3Fquery%3Dcom.redhat.jenkins.plugins.ci.CIPolarionExporter.perform%26entity%3Dmethod&sa=D&sntz=1&usg=AFQjCNH1gBovL1uA4mgh25DIY8tr-yNHPg>hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.perform&entity=method>
athudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.perform&entity=method>
athudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps&entity=method>
athudson.model.Build$BuildExecution.cleanUp(Build.java:192)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.cleanUp&entity=method>
athudson.model.Run.execute(Run.java:1805)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
athudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
athudson.model.ResourceController.execute(ResourceController.java:89)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
athudson.model.Executor.run(Executor.java:240)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
My class extends Recorder and according to what I have
read in a Recorder it is possible to modify the build
status (unlike a Notifier):
/**
* {@link Recorder} is a kind of {@link Publisher} that
collects statistics from the build,
* and can mark builds as unstable/failure. This
marking ensures that builds are marked accordingly
* before notifications are sent via {@link Notifier}s.
Otherwise, if the build is marked failed
* after some notifications are sent, inconsistency
ensues.
*/
My Jenkins version is 1.596.1, and the parent pom in my
maven project where I build the plugin is 1.596.1 as well.
I feel like I am missing something obvious here, but
I'm not seeing it.
Can anyone help?
Thanks,
-- Greg
--
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/0c073901-0221-437d-abf0-e00d0b345449%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-dev/0c073901-0221-437d-abf0-e00d0b345449%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to a
topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-dev/aoaeU6nHaIU/unsubscribe
<https://groups.google.com/d/topic/jenkinsci-dev/aoaeU6nHaIU/unsubscribe>.
To unsubscribe from this group and all its topics, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/5638DFE4.7050705%40redhat.com
<https://groups.google.com/d/msgid/jenkinsci-dev/5638DFE4.7050705%40redhat.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
<CIPolarionExporter.java>
--
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/E99535A3-A376-4300-A679-4343969684B6%40gmail.com
<https://groups.google.com/d/msgid/jenkinsci-dev/E99535A3-A376-4300-A679-4343969684B6%40gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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 [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1ed500cc-b2fd-45d9-ba8d-5520f8ca65d2%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-dev/1ed500cc-b2fd-45d9-ba8d-5520f8ca65d2%40googlegroups.com?utm_medium=email&utm_source=footer>.
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/5638EECC.4050007%40redhat.com.
For more options, visit https://groups.google.com/d/optout.