Skip to content

Commit ff56d9e

Browse files
authored
Use BROWSER environment variable to select browser (#44)
1 parent 7d1904e commit ff56d9e

File tree

1 file changed

+7
-1
lines changed
  • docs/tutorials/jenkins/parallel-robot-pipeline

1 file changed

+7
-1
lines changed

docs/tutorials/jenkins/parallel-robot-pipeline/Jenkinsfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ pipeline {
1717
args '--entrypoint=""'
1818
reuseNode true
1919
} }
20+
environment {
21+
BROWSER = "chromium"
22+
}
2023
steps {
2124
sh "robot -d robot_output -l none -r none -o chromium.xml -N Chromium -v URL:${params.URL} --nostatusrc $d/suites/"
2225
// If reuseNode true was not used, we would have to stash the output XML.
@@ -29,8 +32,11 @@ pipeline {
2932
args '--entrypoint=""'
3033
reuseNode true
3134
} }
35+
environment {
36+
BROWSER = "firefox"
37+
}
3238
steps {
33-
sh "robot -d robot_output -l none -r none -o b.xml -N Firefox -v URL:${params.URL} --nostatusrc $d/suites/"
39+
sh "robot -d robot_output -l none -r none -o firefox.xml -N Firefox -v URL:${params.URL} --nostatusrc $d/suites/"
3440
// If reuseNode true was not used, we would have to stash the output XML.
3541
// stash includes: 'robot_output/**', name: 'Firefox'
3642
}

0 commit comments

Comments
 (0)