...
| Code Block |
|---|
curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh |
| Code Block |
|---|
sudo groupadd docker sudo usermod -aG docker $USER |
| Code Block |
|---|
newgrp docker |
sudo:| Code Block |
|---|
docker run hello-world |
Self Hosted Maven Artifact Repository :
This is where Automatics maven artifacts will be deployed and used during test execution using maven. If this setup is not available, user can skip the input reading for maven artifact repo details. If planning to keep the artifacts in maven local repo in the same machine, please replace the command mvn deploy with mvn install in jenkins jobs configuration where ever applicable.
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).
...