logo       

Re: Dependency between Publishers?: msg#00106

java.hudson.user

Subject: Re: Dependency between Publishers?

Eric Crahen wrote:
I'd like to generate some reports on artifacts that the artifact archive has
archived. I haven't found a way to officially configure the archiver to run
before the reporter. So far, I appear to just be getting lucky when I check
them both. Is there a way to express such a dependency?

I believe Hudson invokes listeners in the order they are placed in the BuildStep.PUBLISHERS (if not, we should fix that.) So the poorman's approach to this problem has been to place them in the right place in the list.

It's certainly conceivable to come up with more elaborate scheme, like perhaps by declaring dependencies, but I suspect it won't really buy us that much.

Also, if all you're trying to do is to record the reports as a part of build, and don't really care if it's a part of the "artifacts" or not, then it's better to store reports on your own directory. For example, junit report publisher does just that. The added benefit is that the user won't have to configure two places to get it right.

If you really need to place things under the artifacts directory, your publisher can just copy whatever you produced into the artifacts directory on your own. I think this is pretty easy and not much code duplication involved.

If you can explain a bit of context, I can probably give you better suggestions.

--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi@xxxxxxx

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise