Skip to content

Commit aa26f39

Browse files
author
Jamie Curnow
committed
Fix CI permissions
1 parent d3f9064 commit aa26f39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ pipeline {
351351
juxtapose event: 'failure'
352352
sh 'figlet "FAILURE"'
353353
}
354+
always {
355+
// Revert ownership
356+
sh 'echo Reverting ownership'
357+
sh 'docker run --rm -v ${CWD}:/project ${DOCKER_CI_TOOLS} chown -R $(id -u):$(id -g) /project'
358+
}
354359
}
355360
}
356361

0 commit comments

Comments
 (0)