Versions Compared

Key

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

...

  1. Clone the above repo and go to the directory "jenkinsServerSetup\"
  2. Here you will find a file named "install_jenkins_server.sh" 
  3. Execute this shell script as sudo. This will install Docker and pull the Jenkins server image from docker hub 
  4. Then it will install all the necessary dependencies link maven, and Jenkins plugins.
  5. Also Automatics Core & RDKB Utils build jobs as well as Build and Deployments jobs will be created.
  6. When executing the shell script it will ask for the inputs like the port in which the Jenkins server needs to be started. Please input those details during execution
  7. Once the jenkins server setup is completed. Open the browser and give the public ip and port(or domain name if you have one) in URL box which will open the jenkins webpage. For example if your public ip address is 192.168.91.44 and jenkins server is started on 8909 the give the URL as "192.168.91.44:8909", you will get the page like below 
    1. Image RemovedImage Added
  8. Now open "Manage Jenkins" option→ "Configure Global Security" → Under Security Realm, select Jenkins’ own user database → In the Authorization section, select Logged-in users can do anything. → Unselect Allow anonymous read access. → Click Save to save your changes.
    1.  
  9. Now go inside the already created jobs in Jenkins and modify the necessary configurations like maven repo URL, Shell script file paths etc

...

Provide all the fields based on the description provided against each field and press the build button to build the job.

Automatics Configurations post deployment completion

The below configurations needs to be done in Automatics Orchestration, Automatics Properties, Device Manager and Jenkins jobs inorder to trigger a Test case execution from Automatics Orchestration

Jenkins Jobs

The below set of jobs will be created after successful completion of Automated Build and Deployment execution.

Image Added

Jenkins Job Name

Configuration to be

done in Jenkins Jobs

Steps carryout

the configuration

Automatics_Build_JobNIL
Automatics_Deployment_jobNIL
CI_Api_Parser_Automatics_CoreConfigure automatics properties URL in 
the JAVA_OPTS "-Dautomatics.properties.file=Automatics_Props_URL_Tobe_Added_here"
Under Goals of BUILD Tab
  1. Open the job by clicking the job name
  2. In the menus at the left click configure button
  3. Now click the Build tab at the top
  4. Now replace "Automatics_Props_URL_Tobe_Added_here" this string with the actual automatics properties URL in the Goals text field under " Invoke top-level Maven targets " menu
CI_Api_Parser_RDKB_Utils
CI_Api_Parser_RDKV_Utils
CI_Api_Parser_Scriptless_Automation
JOB1
Deploy_Automatics_CoreConfigure automatics properties URL in 
the JAVA_OPTS "-Dautomatics.properties.file=Automatics_Props_URL_Tobe_Added_here"
Under Goals of BUILD Tab