It seems like you are storing the result in some singleton instance, like the descriptor or other, that both builds are reading from. The standard approach for a builder or recorder is to put relevant data in a separate Action instance and add that to the build. Maybe you have created an Action but you are using the same instance for all builds?
Robert Sandell Software Tools Engineer - SW Environment and Product Configuration Sony Mobile Communications > -----Original Message----- > From: [email protected] [mailto:jenkinsci- > [email protected]] On Behalf Of florian.roncari > Sent: den 12 juni 2013 10:15 > To: [email protected] > Subject: Display results of last build even if it's not the good > project > > Hello, > > I'm making a plugin for Code Quality and I want to display all my > results in an Array. > I have created a Jelly file for displayng this array (I use it. > function). > When I build my project everything is OK I have all the result for this > project in my array. > So when I build another project, I ll see the result of this other > plugins. > For the moment everything is OK. > But... if I come back on my first project and look previous build > result I will see the array of the other project. > > Easier: I have 2 projects build with my plugins (A and B) I build A --> > I see A result after I build B ---> I see B result I come back on > project A and look the last build --> I SEE RESULT B.... > > If someone have an explanation why :) > My plugin is a build process > > Thank you in advance > > > > > -- > View this message in context: http://jenkins- > ci.361315.n4.nabble.com/Display-results-of-last-build-even-if-it-s-not- > the-good-project-tp4669195.html > Sent from the Jenkins dev mailing list archive at Nabble.com. > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
