Jenkinsfile: chown the workspace before cleaning up

If the build was aborted then the dev_cli.sh code that is responsible
for changing the file ownership will not get run. This results in the
failure to delete some of the files in the workspace.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-08-12 17:12:10 +01:00
parent b9fbcd469c
commit 7b621bde4f

1
Jenkinsfile vendored
View File

@ -104,6 +104,7 @@ pipeline{
}
post {
always {
sh "sudo chown -R jenkins.jenkins ${WORKSPACE}"
deleteDir()
}
}