RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Clone the repository https://code.rdkcentral.com/r/admin/repos/rdk/tools/automatics/dev-ops(Please open the above url in browser and git clone url is available in the page) and navigate to the jenkinsServerSetup
directory:
Code Block |
---|
git clone <repository_url>
cd dev-ops/jenkinsServerSetup |
Execute the installation script as sudo
:
Code Block |
---|
sudo sh install_jenkins_server.sh |
This script installs Docker, pulls the Jenkins server image from Docker Hub, and installs necessary dependencies like Maven and Jenkins plugins. It also creates Automatics Core & RDKB Utils build jobs and build and deployment jobs.
During script execution, provide inputs such as the port for the Jenkins server. After setup, access Jenkins via the browser using the public IP and port (e.g.,
192.168.91.44:8909
).
Configure Jenkins security:
Go to "Manage Jenkins" → "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".
Modify the necessary configurations in the pre-created Jenkins jobs (e.g., Maven repo URL, shell script file paths).
...
After the automated deployment job execution, user has to configure the artifact repository details in maven settings.xml in automatics_jenkins docker to maven deploy the automatics artifacts. This is required for test execution, as maven artifacts of automatics-core, test-utils are pulled from artifact repo during execution.The below configurations needs to be available in Automatics Orchestration, Automatics Properties, Device Manager and Jenkins jobs inorder to trigger a successful Test case execution from Automatics Orchestration
Login in to jenkins docker by executing docker exec -it automatics_jenkins bash.
Edit settings.xml file in /etc/maven/settings.xml to add maven artifact repository details.- Add profile as below and add the artifactory repository url in <url> section
<profile>
<id>rdk-repo</id>
<repositories>
<repository>
<id>rdk-repo</id>
<url>Add artifactory repository url here</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
</profile>
Add artifact repository credential details as given below:
<servers>
<server>
<id>rdk-repo</id>
<username></username>
<password></password>
</server>
Update profile as active
<activeProfiles>
<activeProfile>rdk-repo</activeProfile>
</activeProfiles>
More details about maven settings.xml configuration can be referred from https://maven.apache.org/settings.html
Jenkins Jobs
The below set of jobs will be created after successful completion of Automated Build and Deployment execution.
...
Jenkins Job Name | Configuration to be done in Jenkins Jobs | Steps carryout the configuration |
---|---|---|
Automatics_Build_Job | NIL | |
Automatics_Deployment_job | NIL | |
CI_Automatics_Code_Deploy_And_3.0_Api_Parser | NIL | |
CI_Api_Parser_Automatics_Core | Configure automatics properties URL in the JAVA_OPTS "-Dautomatics.properties.file=Automatics_Props_URL_Tobe_Added_here" Under Goals of BUILD Tab |
|
CI_Api_Parser_RDKB_Utils | ||
CI_Api_Parser_RDKV_Utils | ||
CI_Api_Parser_Scriptless_Automation | ||
JOB1 | ||
Deploy_Automatics_Core | Configure your private repo(this is for storing the maven dependencies for automatics) along with maven deploy command under Build Section |
|
Deploy_RDKB_Utils | ||
Deploy_RDKV_Utils | ||
Deploy_RPi_Partner_Java_API |
After completing the above set of configuration execute Jenkins Jobs in below order.
"CI_Automatics_Code_Deploy_And_3.0_Api_Parser"
...
. - This job will build and deploy all the automatics dependencies to the repo and run the parsers needed for Automatics Scriptless automation (Automatics 3.0).
...
"Deploy_RPi_Partner_Java_API"
...
This job will build and deploy rpi provider partner implementation.
Automatics Orchestration
System Configuration
The below mandatory system configurations needs to be done in Automatics orchestration for running a first dummy Test execution and result verification from automatics. Please follow Automatics Orchestration Setup#Configuration to configure required configs System Config page of Automatics Properties to make use of features like scriptless automation, review management etc
All the URLs and DB credentials used for the deployment can be found as a YAML file in "archived artifacts" of Automatics Deployment Job execution DeploymentJob
...
All the mandatory properties mentioned in the document Automatics Properties should be configured in automatics properties for the successful execution of a test case.
After all configuration are done, please login to the VM where debugger service is running and restart the debugger docker container.
Important Points to Note
...
Overview
Community Forums
Content Tools
Tasks