Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Nov 18, 2019 20:52

This section explains how to integrate an existing Maven and Perfecto project with Jenkins. For a Perfecto Maven sample project, see https://github.com/PerfectoMobileSA/PerfectoSampleProject.


To integrate an existing Maven and Perfecto project with Jenkins:

  1. Create a new Jenkins job.
  2. Add the source code management information for the Git repository location of the project.
  3. Add parameters, as follows:
    1. Select the This project is parameterized checkbox.
    2. Add the following parameters and set their corresponding default values:
      • securityToken. For information on retrieving the security token for your user, see Generate security tokens.
      • cloudName. For example: mobilecloud
  4. Add a build step called Invoke Top-level Maven targets.
  5. Configure the build step as follows:
    1. From the Maven Version list, select the relevant version.
    2. In the Goals field, add the following goals:

      clean
      install
      -DcloudName=${cloudName}
      -DsecurityToken=${securityToken}
      -Dreportium-job-name=${JOB_NAME} 
      -Dreportium-job-number=${BUILD_NUMBER} 
      -Dreportium-job-branch=${GIT_BRANCH} 
      -Dreportium-tags=${myTag}

  6. Run the job and get the Maven output in the console logs.