Versions Compared

Key

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

...

  • Install Jenkins
  • Configure Java 1.8 and Maven 3
  • Select Manage Jenkins and select Configure System
  • Create jenkins job with name configured in Automatics orchestration.
  • Within job, in General section

    • Check the “Discard old builds”.
    • Select Log Rotation and we can keep the days of build and Max # of builds.
    • Please configure following String parameters

filterTestIds, filterTestType, updateRdkPortal, settopList, JMD_ID, BUILD_NAME, executionMode, gr,grb 

    • Under Source Code Management, Select GIT and specify Repository base url. During execution, the test project repository path and branch will be available from 'gr' and 'grb' parameters.
    • Under Pre Steps in Build section, please add below


  1. In home directory, the path to be set up as Jenkins installed path in VM.
  2. Inside Maven Configuration, local maven repository to be set
  3. Inside Jenkins location, Jenkins URL and respective email address to be set.
  4. Under Global properties, we have to set the required list of environment variable.

...

  • Check the “Discard old builds”.
  • Select Log Rotation and we can keep the days of build and Max # of builds.
  • Please configure String parameters filterTestIds, filterTestType, updateRdkPortal, settopList, JMD_ID, BUILD_NAME, executionMode, gr,grb in job
  • Under Source Code Management, Select GIT and specify Repository base url.
  • Under Pre Steps in Build section, please add below

pom.xml

clean install -U exec:java -DskipTests=true -DretryByDefault=false -DbuildType=RDK -Dhttps.protocols=TLSv1.1,TLSv1.2 -Dsun.security.ssl.allowUnsafeRenegotiation=true -Dautomatics.properties.file={automatics.properties.url }

  • Click on Apply and Save button.