...
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:
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
<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>
<servers>
<server>
<id>rdk-repo</id>
<username></username>
<password></password>
</server>
<activeProfiles>
<activeProfile>rdk-repo</activeProfile>
</activeProfiles>
More details about maven settings.xml configuration can be referred from https://maven.apache.org/settings.html
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.
...
...
...
...
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.
...