From 5f5fe91c8d00bdf5eb359bec02416415aec06f06 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Mon, 23 Nov 2020 09:42:58 +0100 Subject: [PATCH] Buildfix: Generate allure report as Jenkins user --- Jenkinsfile | 2 +- tests/modules/Jenkinsfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c10a694b5..b65240eaa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -125,7 +125,7 @@ def processAllure() { node { deleteDir() 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' } } diff --git a/tests/modules/Jenkinsfile b/tests/modules/Jenkinsfile index e52d70351..e8fbbd8d0 100644 --- a/tests/modules/Jenkinsfile +++ b/tests/modules/Jenkinsfile @@ -50,7 +50,7 @@ ansiColor('xterm') { } 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' } }