Jenkinsfile: pass parameters to commonFunctions.groovy

pull/658/head
pabloFuente 2021-10-26 15:15:56 +02:00
parent d51e0ca4a5
commit e80c17cc04
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ node('container') {
// Load and execute common functions Groovy script // Load and execute common functions Groovy script
sh 'curl -O https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/jenkins/commonFunctions.groovy' sh 'curl -O https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/jenkins/commonFunctions.groovy'
def commonFunctions = load 'commonFunctions.groovy' def commonFunctions = load 'commonFunctions.groovy'
commonFunctions.prepareTestingEnvironment() commonFunctions.prepareTestingEnvironment("${DISTRO}", "${MEDIASOUP_CONTROLLER_DOCKER_VERSION}")
// Clone and checkout OpenVidu/openvidu repository // Clone and checkout OpenVidu/openvidu repository
def commitId = "${OPENVIDU_COMMIT}" def commitId = "${OPENVIDU_COMMIT}"

View File

@ -1,5 +1,5 @@
#!groovy #!groovy
def prepareTestingEnvironment() { def prepareTestingEnvironment(def DISTRO, def MEDIASOUP_CONTROLLER_DOCKER_VERSION) {
println('Deleting folder /opt/openvidu') println('Deleting folder /opt/openvidu')
sh 'sudo rm -rf /opt/openvidu/* || true' sh 'sudo rm -rf /opt/openvidu/* || true'