Thanks for the quick reply Gregory. I have been looking at the
EnvInject plugin and have a few questions:

- What is the best way for me to access to parsed contents of the POM?

- Can you give me a quick overview of how I would expose a new
environment variable.

Thanks,
Baron

On Mar 26, 12:29 am, Grégory Boissinot <[email protected]>
wrote:
> Hi,
>
> Instead of creating again a new plugin, the best way to achieve this
> feature is to extend the EnvInject Jenkins plugin.
> EnvInject is the centralized plugin to manage environment variables in
> Jenkins and expose theses variables in the build such as in plugins (for
> example the artifactdeployer you mentioned).
>
> Additionally, EnvInject plugin provides all elements (frame) to add your
> environments variables.
> Feel free to enhance it and provide a Git pull request.
>
> Thanks
> Gregory
>
>
>
>
>
>
>
> On Mon, Mar 26, 2012 at 7:10 AM, Baron <[email protected]> wrote:
> > I would like to make my Maven POM values (e.g. groupId, artifactId,
> > version, etc.) available as properties for use by other plugins (e.g.
> > artifact deployer). I started creating a plugin but have hit anumber
> > of snags:
>
> > - If I create a subclass of BuildWrapper, it looks like I can augment
> > the environment but it does not appear that the POM has been parsed
> > yet.
>
> > - I am unclear of whether augmenting the EnvVars is what I want. Does
> > this make the values available as properties to the rest of the build?
>
> > - I played with registering a MavenReporter where I know I have the
> > parsed POM but it is not clear how to make these values available to
> > the rest of the build.
>
> > Thanks for any and all help.
>
> > Baron

Reply via email to