-
Verify Git Authenticity:
Ensure that the connection to the repository is secure. Execute the command below in the ROSject terminal to confirm:git ls-remote -h -- [email protected]:vallab/ros1_ci.git HEAD
user:~$ git ls-remote -h -- [email protected]:vallab/ros1_ci.git HEAD The authenticity of host 'github.com (4.208.26.197)' can't be established. ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,4.208.26.197' (ECDSA) to the list of known hosts.
-
Setting Up Jenkins:
If Jenkins isn't already running (check usingpf faux | grep jenkins
), follow these instructions to get it up and running. A shell script to install the latest version of Jenkins is available within the ROSject. Run these commands in your ROSject terminal:source ~/.bashrc cd ~/webpage_ws/ && bash start_jenkins.sh
-
Accessing Jenkins:
You can open the Jenkins dashboard using one of two methods:- Via Proxy Address:
Run this command to retrieve the proxy URL, then click the link to open Jenkins:jenkins_address
- From Text File:
Use this command to read the file that holds the Jenkins URL:cat ~/jenkins__pid__url.txt
- Via Proxy Address:
- Login to Jenkins:
Use the credentials below to sign in to the Jenkins web interface:Username: admin Password: password
-
Managing the "ros1_ci" Project:
On the Jenkins dashboard, locate the "ros1_ci" project. You can manually initiate a build by pressing the "Build Now" button on the project page. Alternatively, commit changes to the repository to automatically trigger a build. -
Building via Pull Request:
- check if webhook address is same as
https://i-0dce5c6557a09452b.robotigniteacademy.com/66807303-af3a-4977-bbba-b19d8eab57a4/jenkins/github-webhook/
if it's notand get it to be updated by the user in github.com user account.echo "$(jenkins_address)github-webhook/"
- Add a new
test.txt
file to the repository and open a pull request. - Once merged, navigate to the "ros1_ci" project page or the Build Executor tab in Jenkins.
- Wait briefly (less than a minute) for the build to start automatically due to the SCM change.
- Click the build dropdown to view the "Console Output" and observe the build process.
- The build will pull a Docker image and proceed with building and testing.
- After successful completion, check the ROSject tab for these outcomes:
- Gazebo will launch with the TortoiseBot Playground world.
- The Waypoint action server will start.
- TortoiseBot will navigate to the predefined waypoint.
- Once the waypoint is reached, Gazebo will close.
- Review the Jenkins Console Output for a summary of the ROS test, which should pass.
- check if webhook address is same as
Occasionally, Gazebo may not start promptly, causing the test to fail. If this happens, manually rebuild the project in Jenkins.