diff --git a/.ci_local_test/Jenkinsfile b/.ci_local_test/Jenkinsfile new file mode 100644 index 00000000..8dcb84ac --- /dev/null +++ b/.ci_local_test/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + environment { + // Test_Server is the local test machine. + Test_Server = "robotics-testNUC11" + WORKSPACE_PATH = "/home/intel/ros2_openvino_toolkit" + } + stages { + stage('Test Ros2 Galatic') { + steps { + script { + def flag = sh script: "ssh intel@$Test_Server 'cd $WORKSPACE_PATH && docker images | grep ros2_openvino_test'", returnStatus: true + if (flag == 0) { + docker rmi -f ros2_openvino_test + } + def test_result = sh script: "ssh intel@$Test_Server 'cd $WORKSPACE_PATH && ./self_host_test_ros2_openvino.sh '", returnStatus: true + if (test_result == 0) { + echo "test pass" + } else { + echo "test fail" + exit -1 + } + + } + } + } + + } + +} diff --git a/.ci_local_test/README.md b/.ci_local_test/README.md new file mode 100644 index 00000000..7830c823 --- /dev/null +++ b/.ci_local_test/README.md @@ -0,0 +1,21 @@ + + +The Jenkinsfile Introduce: + +1. The jenkins matchine would scan the ROS2_Openvion project regularly. + +it would trigger test when scan the PR or other change. + + +2. The test machine name robotics-testNUC11, it build and test the project refer as below the link. + + The Link: https://github.com/intel/ros2_openvino_toolkit/blob/master/doc/quick_start + + Dashing: getting_started_with_Dashing_Ubuntu18.04.md + + Foxy: getting_started_with_Foxy_Ubuntu20.04.md + + Galactic: getting_started_with_Galactic_Ubuntu20.04.md + +3. The test result would send by email. +