Buildfix: Generate allure report as Jenkins user

This commit is contained in:
Tobias Gruetzmacher 2020-11-23 09:42:58 +01:00
parent 30db5120f1
commit 5f5fe91c8d
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View file

@ -125,7 +125,7 @@ def processAllure() {
node { node {
deleteDir() deleteDir()
unstash 'allure' unstash 'allure'
sh 'docker run --rm -v $PWD:/work tobix/allure-cli generate allure-*' sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-*'
publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report' publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report'
} }
} }

View file

@ -50,7 +50,7 @@ ansiColor('xterm') {
} }
stage('Allure Report') { stage('Allure Report') {
sh 'docker run --rm -v $PWD:/work tobix/allure-cli generate allure-data' sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-data'
publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report' publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report'
} }
} }