Fixing permission issues.
@@ -7,7 +7,7 @@ def SERVER_URL = 'https://dev.carlspring.org/nexus/content/repositories/carlspri
pipeline {
agent {
docker {
- args '-v /mnt/ramdisk/3:/home/jenkins --cap-add SYS_ADMIN'
+ args '-v /mnt/ramdisk/3:/home/jenkins --privileged=true'
image 'hub.carlspring.org/jenkins/opensuse-slave:latest'
}
}
@@ -30,7 +30,8 @@ pipeline {
echo "Preparing workspace..."
sh "mkdir -p '$RAMWS'"
- sh "cp -R `ls -A '$HDDWS' | grep -v ram` '$RAMWS'"
+ //sh "cp -R `ls -A '$HDDWS' | grep -v ram` '$RAMWS'"
+ sh "find $HDDWS -maxdepth 1 ! -path 'ram' -exec cp -R {} '$RAMWS' \\;"
sh "mkdir -p '$RAMMOUNT'"
sh "sudo mount --bind '$RAMWS' '$RAMMOUNT'"
}
