From 00f67fa56c342f8d98c4077630f273c35cfe4a06 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Thu, 18 Nov 2021 17:40:04 +0100 Subject: [PATCH] openvidu-test-e2e: commonFunctions.groovy mkdir fix --- openvidu-test-e2e/jenkins/commonFunctions.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openvidu-test-e2e/jenkins/commonFunctions.groovy b/openvidu-test-e2e/jenkins/commonFunctions.groovy index 7774a35056..e4805efbff 100644 --- a/openvidu-test-e2e/jenkins/commonFunctions.groovy +++ b/openvidu-test-e2e/jenkins/commonFunctions.groovy @@ -145,13 +145,14 @@ def removeStrandedContainers(removeTestingContainers) { } } -def storeInCache(folderToStore, cacheDestiny) { +def storeFolderInCache(folderToStore, cacheDestiny) { println('Storing in cache') sh "sudo mkdir -p ${folderToStore}" + sh "sudo mkdir -p ${cacheDestiny}" sh "sudo mv ${folderToStore} ${cacheDestiny}" } -def loadFromCache(cacheFolder, destinyFolder) { +def loadFolderFromCache(cacheFolder, destinyFolder) { println('Loading from cache') sh "sudo mv ${cacheFolder} ${destinyFolder}" sh "sudo chown -R 1000:1000 ${destinyFolder} && sudo chmod 777 ${destinyFolder}"