Buildfix: Generate allure report as Jenkins user
This commit is contained in:
parent
30db5120f1
commit
5f5fe91c8d
2 changed files with 2 additions and 2 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
tests/modules/Jenkinsfile
vendored
2
tests/modules/Jenkinsfile
vendored
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue