Fix build for libvirt-exporter package
Change-Id: I269f8838c9856adf9b0faedd316df8abb2a34b62
Depends-On: I78eb6047c9a4971dad0617985101f0772093312c
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") {