To allow the TeamCity building agent to pull the source code of the automation package, you need to store the package in a version control system such as Bitbucket, Git, CVS, Microsoft Team Foundation Server (TFS), Perforce Helix Core, and so on. This section uses Bitbucket as an example.
Create a new project.
When prompted for Maven settings, install the Maven support plugin by selecting the checkbox for the Maven build step and clicking Use selected.
Select the Maven build step and click Use selected.
In the Build Step: Maven panel, provide the following information:
Runner type: Maven
Additional Maven command line parameters:
-Dmaven.test.failure.ignore=true -Dreportium-job-name=”%env.TEAMCITY_PROJECT_NAME%” -Dreportium-job-number=%env.BUILD_NUMBER% -Dreportium-job-branch=”%myBranch%” -Dreportium-tags=”%myTag%”
When setup is done, run the build and check the CI Dashboard in the Test Analysis view of your Perfecto cloud. Sample URL: https://<your-cloud>.reporting.perfectomobile.com/dashboard-ci