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

executionIdProvides execution id
branch

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

Configure Source Code Management

  • Add the Branch details where code changes for health check partner implementation is added. If partner is using open sourced health check implementation then can provide branch as "*/rdk-next"

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 -DexecutionId=$executionId  -Dautomatics.properties.file={automatics_properties_base_url}/automatics.properties -Dproperties.file.token={Base 64 encrypted login id and password for automatics.properties 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