mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: add cache management to commonFunctions.groovy
parent
b8e4e48f2e
commit
48ebf2d36b
|
@ -145,4 +145,16 @@ def removeStrandedContainers(removeTestingContainers) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def storeInCache(folderToStore, cacheDestiny) {
|
||||||
|
println('Storing in cache')
|
||||||
|
sh "sudo mkdir -p ${folderToStore}"
|
||||||
|
sh "sudo mv ${folderToStore} ${cacheDestiny}"
|
||||||
|
}
|
||||||
|
|
||||||
|
def loadFromCache(cacheFolder, destinyFolder) {
|
||||||
|
println('Loading from cache')
|
||||||
|
sh "sudo mv ${cacheFolder} ${destinyFolder}"
|
||||||
|
sh "sudo chown -R 1000:1000 ${destinyFolder} && sudo chmod 777 ${destinyFolder}"
|
||||||
|
}
|
||||||
|
|
||||||
return this
|
return this
|
||||||
|
|
Loading…
Reference in New Issue