[Pipeline] echo Unique node label e39d941e-7631-4c84-938d-112651c26dd6 [Pipeline] podTemplate [Pipeline] { [Pipeline] node Still waiting to schedule task Waiting for next available executor Running on jenkins-slave-d5qxs-2hj4f in /home/jenkins/workspace/selftests/access-denied-sample [Pipeline] { [Pipeline] stage [Pipeline] { (simulate checkout scm) [Pipeline] echo no container specified, thus this code runs in container jnlp with uid 10000 (ten thousand) [Pipeline] sh [access-denied-sample] Running shell script + whoami jenkins + id uid=10000(jenkins) gid=10000(jenkins) groups=10000(jenkins) + ls -las total 8 4 drwxr-xr-x 2 jenkins jenkins 4096 Jan 9 10:31 . 4 drwxr-xr-x 4 jenkins jenkins 4096 Jan 9 10:31 .. + echo jnlp + ls -las total 12 4 drwxr-xr-x 2 jenkins jenkins 4096 Jan 9 10:31 . 4 drwxr-xr-x 4 jenkins jenkins 4096 Jan 9 10:31 .. 4 -rw-r--r-- 1 jenkins jenkins 5 Jan 9 10:31 jnlp.txt [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (node) [Pipeline] container [Pipeline] { [Pipeline] echo This code runs as root user (uid 0) [Pipeline] sh [access-denied-sample] Running shell script + whoami root + id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video) + ls -las total 12 4 drwxr-xr-x 2 10000 10000 4096 Jan 9 10:31 . 4 drwxr-xr-x 4 10000 10000 4096 Jan 9 10:31 .. 4 -rw-r--r-- 1 10000 10000 5 Jan 9 10:31 jnlp.txt + echo node + ls -las total 16 4 drwxr-xr-x 2 10000 10000 4096 Jan 9 10:31 . 4 drwxr-xr-x 4 10000 10000 4096 Jan 9 10:31 .. 4 -rw-r--r-- 1 10000 10000 5 Jan 9 10:31 jnlp.txt 4 -rw-r--r-- 1 root root 5 Jan 9 10:31 node.txt + cat jnlp.txt jnlp + cat node.txt node [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (gradle) [Pipeline] container [Pipeline] { [Pipeline] echo This code runs as user gradle (uid 1000) [Pipeline] sh [access-denied-sample] Running shell script sh: can't create /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied sh: can't create /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-result.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied touch: /home/jenkins/workspace/selftests/access-denied-sample@tmp/durable-92458b77/jenkins-log.txt: Permission denied [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] End of Pipeline ERROR: script returned exit code -2 Finished: FAILURE