Creating multiple target for Jenkins ANT build.xml and passing value between 2 targets

39 views
Skip to first unread message

Ekta Srivastava

unread,
Feb 13, 2016, 6:46:34 AM2/13/16
to Jenkins Users
Hi All,

Need input for creating multiple target in ANT build.
I am having jar file with below methods.
StartPort- this method find a port and start a recorder method on this port.
StopPort- this method ll stop recorder on the same port.

I want to build a ANT build.xml, which should first call StartPort method, then use another target which ll start recorder(this is not from jar file),third target should be to StopPort, which will call StopPort method using same port as in StartPort.

How can I achieve this?

Appreciate any inputs

Reply all
Reply to author
Forward
0 new messages