From e8c39c9242179eceb30c44e7628c7deb3c9ba7dd Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 4 Nov 2021 16:08:16 +0100 Subject: [PATCH] Jenkinsfile: update commonFunctions browser containers pull with specific versions --- .../jenkins/commonFunctions.groovy | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/openvidu-test-e2e/jenkins/commonFunctions.groovy b/openvidu-test-e2e/jenkins/commonFunctions.groovy index fd9969cd..e4b244e5 100644 --- a/openvidu-test-e2e/jenkins/commonFunctions.groovy +++ b/openvidu-test-e2e/jenkins/commonFunctions.groovy @@ -38,16 +38,32 @@ def prepareTestingEnvironment() { } }, 'Pull selenium/standalone-chrome': { - docker.image('selenium/standalone-chrome:latest').pull() + if (env.CHROME_VERSION) { + docker.image("selenium/standalone-chrome:${CHROME_VERSION}").pull() + } else { + docker.image('selenium/standalone-chrome:latest').pull() + } }, 'Pull selenium/standalone-firefox': { - docker.image('selenium/standalone-firefox:latest').pull() + if (env.FIREFOX_VERSION) { + docker.image("selenium/standalone-firefox:${FIREFOX_VERSION}").pull() + } else { + docker.image('selenium/standalone-firefox:latest').pull() + } }, 'Pull selenium/standalone-opera': { - docker.image('selenium/standalone-opera:latest').pull() + if (env.OPERA_VERSION) { + docker.image("selenium/standalone-opera:${OPERA_VERSION}").pull() + } else { + docker.image('selenium/standalone-opera:latest').pull() + } }, 'Pull selenium/standalone-edge': { - docker.image('selenium/standalone-edge:latest').pull() + if (env.EDGE_VERSION) { + docker.image("selenium/standalone-edge:${EDGE_VERSION}").pull() + } else { + docker.image('selenium/standalone-edge:latest').pull() + } }, 'Pull openvidu/mediasoup-controller': { if (env.MEDIASOUP_CONTROLLER_VERSION) {