Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions vars/buildRpmPost.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
*
* config['rpmlint'] Whether to run rpmlint on resulting RPMs.
* Default false.
* config['new_rpm'] Whether we are using new RPM or not
* Default false
*
* config['unsuccessful_script'] Script to run if build is not successful.
* Default 'ci/rpm/build_unsuccessful.sh'
Expand Down Expand Up @@ -88,11 +90,26 @@ void call(Map config = [:]) {
}

String product = config.get('product', 'daos-stack')
publishToRepository product: product,
format: repo_format,
maturity: 'stable',
tech: target,
repo_dir: 'artifacts/' + target
if (config.get('new_rpm', false)) {
publishToRepository product: product,
format: repo_format,
maturity: 'stable',
tech: target,
repo_dir: 'artifacts/' + target
} else {
if (fileExists('artifacts/' + target + '/deps')) {
publishToRepository product: 'deps',
format: repo_format,
maturity: 'stable',
tech: target,
repo_dir: 'artifacts/' + target + '/deps'
}
publishToRepository product: product,
format: repo_format,
maturity: 'stable',
tech: target,
repo_dir: 'artifacts/' + target + '/daos'
}

if (config.get('rpmlint', false)) {
rpmlintMockResults(sh(label: 'Get chroot name',
Expand Down