2

I have my extender parameter like this:

https://i.stack.imgur.com/ytzPk.png

how can i pass it to maven ?

<systemPropertyVariables>
<modules>${project.modules}</modules>
</systemPropertyVariables>

seems not working ? how to access exact one? will it be store in table ? what if I pick more than one ?

i would like to access it in testng:

String modules = System.getProperty("modules");
Jack Jason F
  • 143
  • 1
  • 3
  • 12
  • choosing two params gives for example: two,three, how to get only one? something like ${FIRST.modules} ? – Jack Jason F Apr 21 '15 at 08:46
  • If you want only one parameter always you should change its type to **Single select** or **Radio buttons** instead of *Check boxes*. Then you can pass it as an argument on the maven `Goals and options` input with `-DargLine="-DpropertyName=propertyValue"` (complete details [here](http://stackoverflow.com/questions/3231797/specify-system-property-to-maven-project)) – Morfic Apr 21 '15 at 09:11
  • @morfic but i want to pass couple of params and then access one by one – Jack Jason F Apr 21 '15 at 09:21
  • Then pass it as a list like you are doing it now, and split it inside your test after comma (`,`) – Morfic Apr 21 '15 at 09:24
  • yes, in java its simple using regex but how to do this in maven pom.xml, ${modules}, how can i access ${modules} - first ? second ? – Jack Jason F Apr 21 '15 at 09:27
  • At this point your question is unclear so please update it to reflect where the problem is. Supposing you're trying to build only some modules depending on your selection, you could try defining separate [profiles](http://maven.apache.org/guides/introduction/introduction-to-profiles.html) for each module and activate them with the setting from jenkins `-P ${Modules}` – Morfic Apr 21 '15 at 09:43

0 Answers0