Thanks!

2012/2/14 Kohsuke Kawaguchi <[email protected]>

> On 02/10/2012 07:32 AM, Julien wrote:
>
>> Hi,
>>
>> I am working on a MavenReporter based plugin and have a couple
>> questions.
>>
>> Can I make sure my plugin configuration will only be available on
>> maven based project with a specific maven packaging type?
>>
>
> If you want your configuration in the configure page to only appear for
> some packaging type, that is hard to do, because when the user configures a
> build may not have happened yet.
>
> But if you are willing to trust the packaging of the modules obtained from
> the last build, I believe you can do so via DescriptorVisibilityFilter.
>
> I'd imagine the easier thing to do is to make your plugin available for
> configuration on all Maven jobs, then skip the execution (or make it an
> error) if you get to run with the build with different package type.
>
>  Also what is the best way to access the File representing the main
>> artifact produced by a maven build?
>>
>
> MavenBuild.getMavenArtifacts()**.mainArtifact
>
>
>> Thanks,
>> Julien
>>
>>
>
> --
> Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
> Try Nectar, our professional version of Jenkins
>

Reply via email to