From 9aa791d396d90445e60bba4be0352597eb0bc30f Mon Sep 17 00:00:00 2001 From: ruff Date: Sun, 15 Nov 2020 13:24:33 +0100 Subject: [PATCH] Improved Jenkinsfile -> create artifacts fixed --- Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5b440b63..dfb711ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -104,6 +104,19 @@ pipeline { } } + stage('Archive Artifacts') { + steps { + zip archive: true, dir: 'build/doc', glob: '**/*.*', zipFile: 'build/dist/doc.zip' + zip archive: true, dir: 'src', glob: '**/*.*', zipFile: 'build/dist/src.zip' + zip archive: true, dir: 'build/builddoc', glob: '**/*.*', zipFile: 'build/dist/builddoc.zip' + zip archive: true, dir: 'build/coverage', glob: '**/*.*', zipFile: 'build/dist/coverage.zip' + zip archive: true, dir: 'build/coverage-html', glob: '**/*.*', zipFile: 'build/dist/coverage-html.zip' + zip archive: true, dir: 'build/logs', glob: '**/*.*', zipFile: 'build/dist/logs.zip' + zip archive: true, dir: 'build/pdepend', glob: '**/*.*', zipFile: 'build/dist/pdepend.zip' + zip archive: true, dir: 'build/phpdox', glob: '**/*.*', zipFile: 'build/dist/phpdox.zip' + } + } + stage('CleanUp (After)') { steps { cleanWs()