You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

In Device Manager, health check execution happens from jenkins. Please follow below steps to create and configure Jenkins Job for health check.

1. Create Jenkins Job

  • From Jenkins, select option “New Item” and specify name of the job to be created and select “OK”. 

2. Configure Jenkins Job

  • Click on newly created Jenkins job and click on Configure option. Job configuration can be edited now.

Configure Build Parameters

In General section

  • Check the “Discard old builds”.
  • Select Log Rotation and we can keep the days of build and Max # of builds.
  • Check the "This project is parameterized".

  • Please configure following String build parameters in job.


    Build Parameter

    Description

    filterTestIdsProvides test script ids for execution in comma separated format
    executionIdProvides execution id
    branch

    Provide the branch details from where the code need to get downloaded

    Configure Source Code Management

  • Under Source Code Management, Select option 'GIT'.

Configure Build Environment

  • In ‘Build Environment’, select ‘Delete workspace before build starts’


Configure Build Settings

  • In the ‘Build’ settings, Click on ‘Add build step’ and Select ‘Invoke top-level Maven level targets’

           

  • Add the following maven step in the text box

    Goals 

    clean test -Dsun.security.ssl.allowUnsafeRenegotiation=true  -Dautomatics.properties.file={automatics_properties_base_url}/automatics.properties -Dproperties.file.token={Base 64 encrypted login id and password separated by colon }

  • Click on Advanced button in ‘Invoke top-level Maven level targets’ and add following maven configuration. In the image shown below, maven settings.xml is place at /mnt/maven directory.  Update the settings.xml path based on its location in partner's VM.

           

           Reference - https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

Save the Configuration

  • Click on ‘Apply’ and ‘Save’


  • No labels