Merge "Fix build for libvirt-exporter package"
diff --git a/build-debian-packages-libvirt-exporter.groovy b/build-debian-packages-libvirt-exporter.groovy
index 01e2f10..2b27851 100644
--- a/build-debian-packages-libvirt-exporter.groovy
+++ b/build-debian-packages-libvirt-exporter.groovy
@@ -26,13 +26,11 @@
stage("build binary") {
dir("libvirt-exporter-${version}") {
- sh("sed -i 's/VERSION/${version}/g' debian/changelog")
- sh("debuild -us -uc")
+ sh("""sed -i 's/VERSION/${version}/g' debian/changelog &&
+ scripts/build.py --package --version=\"${version}\" --platform=linux --arch=amd64""")
}
-
- archiveArtifacts artifacts: "*.deb"
+ archiveArtifacts artifacts: "libvirt-exporter-${version}/build/*.deb"
}
-
if (UPLOAD_APTLY.toBoolean()) {
lock("aptly-api") {
stage("upload") {