Jenkins: Archive allure history
This commit is contained in:
parent
d0cc889a44
commit
0ac2f560a4
2 changed files with 2 additions and 0 deletions
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -126,6 +126,7 @@ def processAllure() {
|
||||||
deleteDir()
|
deleteDir()
|
||||||
unstash 'allure'
|
unstash 'allure'
|
||||||
sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-*'
|
sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-*'
|
||||||
|
zip archive: true, dir: 'allure-report', glob: 'history/**', zipFile: 'allure-history.zip'
|
||||||
publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report'
|
publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
tests/modules/Jenkinsfile
vendored
1
tests/modules/Jenkinsfile
vendored
|
@ -54,6 +54,7 @@ ansiColor('xterm') {
|
||||||
|
|
||||||
stage('Allure Report') {
|
stage('Allure Report') {
|
||||||
sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-data'
|
sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-data'
|
||||||
|
zip archive: true, dir: 'allure-report', glob: 'history/**', overwrite: true, zipFile: 'allure-history.zip'
|
||||||
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