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>develop...@email.com</email>
        </developer>
        <developer>
            <id>dev2</id>
            <name>Developer 2</name>
            <email>develop...@email.com</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 the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5a14849c-77c5-4754-a8f4-bdebdbc98311%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to