Fix CI permissions

This commit is contained in:
Jamie Curnow 2019-10-10 08:44:12 +10:00
parent d3f90647f5
commit aa26f3908b

5
Jenkinsfile vendored
View File

@ -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'
}
}
}