ci: try fix builds

This chmod is combined with "Clean before checkout" behaviour
that deletes everything, except .git. This should give us
the sufficient ordering to ensure that everything has the
correct permissions.

Story so far:

Checkout with "Wipe out repository & force clone" didn't work,
because the chmod would've run after trying to delete.

Deleting as a post action doesn't work, because during timeouts
the always steps don't get executed sometimes.

We cannot easily run docker with non root, due to how our ci
image works.

Change-Id: Id4c1605d39ae8d7722ba3dd1ab5df8618de3309b
This commit is contained in:
Egon Elbre 2021-09-27 17:59:07 +03:00
parent 7fd3466925
commit 8036644422

View File

@ -19,6 +19,7 @@ pipeline {
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
sh "chmod -R 777 ." // ensure Jenkins can delete the working directory, with before-checkout hook
checkout scm checkout scm
sh 'mkdir -p .build' sh 'mkdir -p .build'