Configuring the Freestyle project by using the Ant script
After you install the Integration Tester Jenkins Plugin on the Jenkins server, you can configure the Jenkins Freestyle project environment to run the Integration Tester tests as an Ant task by using the test configuration file generated by Rational® Integration Tester.
Before you begin
You must have completed the following tasks:
- Installed the Integration Tester Jenkins Plugin. See Setting up the integration with Jenkins.
- Created an Agent in Jenkins.
- Created a Freestyle project in Jenkins.
- Generated an Ant script by using Rational® Integration Tester to run tests using the Ant plugin. See Generating Ant scripts to run tests.
Procedure
- Open the Jenkins Freestyle project on the Jenkins Dashboard, and then click Configure.
- Click the Build tab, and then click Add build step.
- Select Invoke Ant.
-
Click Advanced.
The build step is displayed.
-
Enter values for the following fields:
Field Value Targets Leave it empty so the Ant target that is specified in the build script is used. Build File Enter the location of the Apache Ant script that was generated by Rational® Integration Tester. - Click Save.
Results
You have configured the Freestyle project by adding the build step to use the Ant plugin.
What to do next
You can run test assets from the Jenkins server. See Running tests from Jenkins.