jenkins: do not test if file exists
@@ -1227,13 +1227,9 @@ def withPermissions(listOfFiles, perm, cl) {
echo "Entering withPermissions"
permissionsMap = [:]
listOfFiles.each {
- if(fileExists(it)) {
def permOld = getPermissions(it)
permissionsMap[it] = permOld
setPermissions(it, perm)
- } else {
- error "File $it does not exist. Can not set permissions"
- }
}
try {
cl()
