Sfoglia il codice sorgente

Fix CI permissions

Jamie Curnow 6 anni fa
parent
commit
aa26f3908b
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      Jenkinsfile

+ 5 - 0
Jenkinsfile

@@ -351,6 +351,11 @@ pipeline {
       juxtapose event: 'failure'
       sh 'figlet "FAILURE"'
     }
+    always {
+      // Revert ownership
+      sh 'echo Reverting ownership'
+      sh 'docker run --rm -v ${CWD}:/project ${DOCKER_CI_TOOLS} chown -R $(id -u):$(id -g) /project'
+    }
   }
 }