Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To integrate an existing Gradle and Perfecto project with Jenkins:

  1. Create a new Jenkins job.

    Expand
    titleClick to view image
    Image Modified
  2. Add the source code management information for the Git repository location of the project.

    Expand
    titleClick to view image
    Image Modified
  3. Add parameters, as follows:
    1. Select the This project is parameterized checkbox. 

      Expand
      titleClick to view image
      Image Modified
    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 Gradle script
  5. From the Gradle Version list, select the relevant version.
  6. In the Tasks field, add the following tasks:

    Code Block
    clean
    build
    test
    -PcloudName=${cloudName}
    -PsecurityToken=${securityToken}
    -PjobName=${JOB_NAME}
    -PjobNumber=${BUILD_NUMBER}
    Expand
    titleClick to view image
    Image Modified
  7. Run the job and get the Gradle output in the console logs.