From 51d539106f55c3e54dff476a39734def3ecf0655 Mon Sep 17 00:00:00 2001 From: Toni Kangas Date: Tue, 14 Oct 2025 23:05:54 +0300 Subject: [PATCH] Use `BROWSER` environment variable to select browser --- .../tutorials/jenkins/parallel-robot-pipeline/Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/jenkins/parallel-robot-pipeline/Jenkinsfile b/docs/tutorials/jenkins/parallel-robot-pipeline/Jenkinsfile index ee0af4b..630e6d9 100644 --- a/docs/tutorials/jenkins/parallel-robot-pipeline/Jenkinsfile +++ b/docs/tutorials/jenkins/parallel-robot-pipeline/Jenkinsfile @@ -17,6 +17,9 @@ pipeline { args '--entrypoint=""' reuseNode true } } + environment { + BROWSER = "chromium" + } steps { sh "robot -d robot_output -l none -r none -o chromium.xml -N Chromium -v URL:${params.URL} --nostatusrc $d/suites/" // If reuseNode true was not used, we would have to stash the output XML. @@ -29,8 +32,11 @@ pipeline { args '--entrypoint=""' reuseNode true } } + environment { + BROWSER = "firefox" + } steps { - sh "robot -d robot_output -l none -r none -o b.xml -N Firefox -v URL:${params.URL} --nostatusrc $d/suites/" + sh "robot -d robot_output -l none -r none -o firefox.xml -N Firefox -v URL:${params.URL} --nostatusrc $d/suites/" // If reuseNode true was not used, we would have to stash the output XML. // stash includes: 'robot_output/**', name: 'Firefox' }