mirror of https://github.com/OpenVidu/openvidu.git
Jenkinsfile: pass parameters to commonFunctions.groovy
parent
d51e0ca4a5
commit
e80c17cc04
|
@ -2,7 +2,7 @@ node('container') {
|
|||
// Load and execute common functions Groovy script
|
||||
sh 'curl -O https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/jenkins/commonFunctions.groovy'
|
||||
def commonFunctions = load 'commonFunctions.groovy'
|
||||
commonFunctions.prepareTestingEnvironment()
|
||||
commonFunctions.prepareTestingEnvironment("${DISTRO}", "${MEDIASOUP_CONTROLLER_DOCKER_VERSION}")
|
||||
|
||||
// Clone and checkout OpenVidu/openvidu repository
|
||||
def commitId = "${OPENVIDU_COMMIT}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!groovy
|
||||
def prepareTestingEnvironment() {
|
||||
def prepareTestingEnvironment(def DISTRO, def MEDIASOUP_CONTROLLER_DOCKER_VERSION) {
|
||||
println('Deleting folder /opt/openvidu')
|
||||
sh 'sudo rm -rf /opt/openvidu/* || true'
|
||||
|
||||
|
|
Loading…
Reference in New Issue