https://integration.wikimedia.org/ci/job/mediawiki-extensions-qunit/22440/console
https://integration.wikimedia.org/ci/job/npm/40750/console
13:39:09 chmod: changing permissions of ‘/mnt/home/jenkins-deploy/tmpfs/jenkins-2’: Operation not permitted 13:39:09 + /srv/deployment/integration/slave-scripts/bin/global-teardown.sh 13:39:09 rm: cannot remove ‘/mnt/home/jenkins-deploy/tmpfs/jenkins-2/lessphp_c19h7h8ykkgkggc4cggksw0o0gsw0wk.lesscache’: Permission denied 13:39:09 rm: cannot remove ‘/mnt/home/jenkins-deploy/tmpfs/jenkins-2/lessphp_49yj39cu3xycsgo48wgg04g80wggw0c.lesscache’: Permission denied 13:39:09 rm: cannot remove ‘/mnt/home/jenkins-deploy/tmpfs/jenkins-2/lessphp_oioi2uyu1msgo08s4kgkgwgw4g040k4.lesscache’: Permission denied 13:39:09 rm: cannot remove ‘/mnt/home/jenkins-deploy/tmpfs/jenkins-2/lessphp_c25rq4csau0c4kco0oc0soo00oso0ck.lesscache’: Permission denied 13:39:09 rm: cannot remove ‘/mnt/home/jenkins-deploy/tmpfs/jenkins-2/lessphp_22pcjs2d0dwgccwwk4g840s4oggowcs.lesscache’: Permission denied 13:39:09 Build step 'Execute a set of scripts' marked build as failure
How to fix
On integration-saltmaster as root. Looks for files owned by www-data
salt -v '*slave*' cmd.run 'find /mnt/home/jenkins-deploy/tmpfs -user www-data'
Passing --delete will get rid of them. Since jobs might be running, you might want to limit deletion to files older than 10 minutes with -cmin 10:
salt -v '*slave*' cmd.run 'find /mnt/home/jenkins-deploy/tmpfs -user www-data -mmin +10 -delete'