Skip to content

Commit

Permalink
openvidu-test-e2e: commonFunctions.groovy mkdir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Nov 18, 2021
1 parent 48ebf2d commit 00f67fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openvidu-test-e2e/jenkins/commonFunctions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 00f67fa

Please sign in to comment.