From 16faadb6822c5a4e359153fe73cdd7c4832a2055 Mon Sep 17 00:00:00 2001 From: "Qian (Jim) Fu" Date: Thu, 12 Dec 2024 17:36:33 -0800 Subject: [PATCH] try DinD in pipeline. --- ...bc-run-multi-pr-checks-w-selenium-chromium | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/Jenkinsfiles/Jenkinsfile.cbc-run-multi-pr-checks-w-selenium-chromium b/Jenkinsfiles/Jenkinsfile.cbc-run-multi-pr-checks-w-selenium-chromium index 289806616..7fb42e291 100644 --- a/Jenkinsfiles/Jenkinsfile.cbc-run-multi-pr-checks-w-selenium-chromium +++ b/Jenkinsfiles/Jenkinsfile.cbc-run-multi-pr-checks-w-selenium-chromium @@ -50,14 +50,6 @@ pipeline { } } - stage("REPORT Python Version") { - steps { - sh """ - python3 --version - """ - } - } - stage("INSTALL Python Packages") { steps { sh """ @@ -75,23 +67,11 @@ pipeline { } } - stage("Start selenium grid in background") { + stage("Start selenium grid by DinD ...") { steps{ sh """ whoami - ls /home - chromium --version - chromedriver --version - chromium - java -jar /selenium-server-standalone.jar& - """ - } - } - - stage("Check localhost:4444/wd/hub is active") { - steps{ - sh """ - curl http://localhost:4444/wd/hub + docker run --rm -it -p 4444:4444 -p 5900:5900 -p 7900:7900 --shm-size 2g selenium/standalone-chromium:latest """ } }