For some GUI testing I'm creating a Jenkins task for each GUI module to be tested. Once created I'm using Ant to build these tests, but I'm not aware of how to actually pass parameters from Jenkins to Ant build file? Basically how do I do variable substitution in Ant?
I'm using the Sahi framework to test GUI components, so the flow goes like this...
Jenkins → Ant build script → Sahi file to execute
Can anyone please take a look at it?
Click Advance under configure section of your job in jenkins and use "Properties" section to pass parameter value to Ant script. e.g
jenkins.param=10 ant.prop=$jenkins.param where jenkins.param is the parameter defined in the jenkins job . Now in your ant build script ,you can get the value by using ${ant.prop}.