Versions Compared

Key

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

Table of Contents

Introduction

Automatics performs test execution in Jenkins. User can view the status of Jenkins execution from Job Manager page of Automatics. The final execution status will be updated back to Automatics.

Setup

Steps to be taken care during Jenkins configuration

  • Install Jenkins

           Disable CSRF protection by setting system property 'hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION' set to true.

  • Configure Java 1.8 and Maven 3
  • Select Manage Jenkins and select Configure System
  • Create jenkins job with name configured in Automatics orchestration.
  • In home directory, the path to be set up as Jenkins installed path in VM.
  • Inside Maven Configuration, local maven repository to be set
  • Inside Jenkins location, Jenkins URL and respective email address to be set.
  • Under Global properties, we have to set the required list of environment variable.

     Configuring Jenkins Job

    Steps to be taken care during job configuration.

    • From Jenkins select “New Item”, Specify name of the new job to be created.
    • If we want to clone from existing job, we can give name of the existing job in the Copy from text box present in the bottom and select “OK”

    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 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.