Chore: Upgrade global-jjb to v0.90.0
[ci-management.git] / jjb / shell / ta-install-build-tools.sh
diff --git a/jjb/shell/ta-install-build-tools.sh b/jjb/shell/ta-install-build-tools.sh
new file mode 100644 (file)
index 0000000..80500c3
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash -ex
+if apt --version 2>1 >/dev/null; then
+    if ! createrepo --version 2>1 >/dev/null; then
+        sudo apt update
+        sudo apt install -y createrepo libguestfs-tools jq libvirt-daemon-system
+    fi
+else
+    sudo yum -y install createrepo libguestfs-tools-c jq
+fi
+sudo systemctl start libvirtd
+systemctl status libvirtd