Skip to content

Commit

Permalink
Improved Jenkinsfile -> create artifacts fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Nov 15, 2020
1 parent 9cb0035 commit 9aa791d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9aa791d

Please sign in to comment.