Jenkinsfile: update commonFunctions browser containers pull with specific versions

pull/664/head
pabloFuente 2021-11-04 16:08:16 +01:00
parent de46b5ce4d
commit e8c39c9242
1 changed files with 20 additions and 4 deletions

View File

@ -38,16 +38,32 @@ def prepareTestingEnvironment() {
} }
}, },
'Pull selenium/standalone-chrome': { 'Pull selenium/standalone-chrome': {
if (env.CHROME_VERSION) {
docker.image("selenium/standalone-chrome:${CHROME_VERSION}").pull()
} else {
docker.image('selenium/standalone-chrome:latest').pull() docker.image('selenium/standalone-chrome:latest').pull()
}
}, },
'Pull selenium/standalone-firefox': { 'Pull selenium/standalone-firefox': {
if (env.FIREFOX_VERSION) {
docker.image("selenium/standalone-firefox:${FIREFOX_VERSION}").pull()
} else {
docker.image('selenium/standalone-firefox:latest').pull() docker.image('selenium/standalone-firefox:latest').pull()
}
}, },
'Pull selenium/standalone-opera': { 'Pull selenium/standalone-opera': {
if (env.OPERA_VERSION) {
docker.image("selenium/standalone-opera:${OPERA_VERSION}").pull()
} else {
docker.image('selenium/standalone-opera:latest').pull() docker.image('selenium/standalone-opera:latest').pull()
}
}, },
'Pull selenium/standalone-edge': { 'Pull selenium/standalone-edge': {
if (env.EDGE_VERSION) {
docker.image("selenium/standalone-edge:${EDGE_VERSION}").pull()
} else {
docker.image('selenium/standalone-edge:latest').pull() docker.image('selenium/standalone-edge:latest').pull()
}
}, },
'Pull openvidu/mediasoup-controller': { 'Pull openvidu/mediasoup-controller': {
if (env.MEDIASOUP_CONTROLLER_VERSION) { if (env.MEDIASOUP_CONTROLLER_VERSION) {