Hello Oleg, When you mention XSLT, you mean to make the conversion programatically, right? Without a Jenkins plugin, but still requiring some development to make it work. I ask because I haven't heard about an XSLT CLI or something to use out-of-the-box. I may be outdated though.
Thanks for your answer! Rafael On Mon, Mar 9, 2015 at 5:03 PM, Oleg Nenashev <[email protected]> wrote: > AFAIK there's no plugins for such purpose. > > The best way to do it in Jenkins w/o plugins would be... > > 1. Convert XML file to *.properties using XSLT conversion > 2. Inject environment variables using EnvInject plugin > > I think a dedicated plugin (or EnvInject extension) would find some users. > > Best regards, > Oleg Nenashev > > > понедельник, 9 марта 2015 г., 17:23:43 UTC+3 пользователь Rafael Ribeiro > Rezende написал: >> >> Is there any plugin to parse XML and extract selected fields into >> Environment Variables? >> >> If not, would it make sense to implement something like this for the >> community? >> For instance, one would provide the XML file with the content: >> >> <project> >> <developers> >> <developer> >> <id>dev1</id> >> <name>Developer 1</name> >> <email>[email protected]</email> >> </developer> >> <developer> >> <id>dev2</id> >> <name>Developer 2</name> >> <email>[email protected]</email> >> </developer> >> </developers> >> <organization> >> <name>Company</name> >> </organization> >> </project> >> >> >> Then, there would be an additional field where one could make the >> following assignment: >> DEV_USER = ${project.developers[1].id} >> ORGANIZATION = ${project.organization.name} >> >> >> The following environment variables would be created: >> DEV_USER = dev1 >> ORGANIZATION = Company >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/r9j5R63M3R4/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-users/564ad7ba-f2c0-41f7-81b5-5cbdaac2bcc9%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/564ad7ba-f2c0-41f7-81b5-5cbdaac2bcc9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rafael R Rezende -- You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAHF%3D1fzeXSAOqXZKVHZ38kQcLGwwBS4fztMqyw05u%2BvObC%3DwTQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
