aboutsummaryrefslogtreecommitdiff
path: root/ldcg-bigdata-apache-drill
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-03-05 13:21:38 +0100
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-03-06 23:31:32 +0000
commit09ba7db0ff6fea279a78593fe3477108b241f89f (patch)
treed1df058a57d11ae6724ac951a1ee6450da4127f7 /ldcg-bigdata-apache-drill
parentff339fab9b1f3511482b725d0271be9a63e83bbc (diff)
ldcg-bigdata-apache-drill: add new job for BigData team
This job builds Debian package of Apache Drill project. It is ugly as hell package built by Java developers so can not be done in OBS. Change-Id: I0076a6a0ea64f64fd1cd6cc0aab6909f7649f5d7
Diffstat (limited to 'ldcg-bigdata-apache-drill')
-rw-r--r--ldcg-bigdata-apache-drill/build.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/ldcg-bigdata-apache-drill/build.sh b/ldcg-bigdata-apache-drill/build.sh
new file mode 100644
index 00000000..f0d89bb3
--- /dev/null
+++ b/ldcg-bigdata-apache-drill/build.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+echo "deb http://obs.linaro.org/ERP:/18.06/Debian_9 ./" | sudo tee /etc/apt/sources.list.d/erp-18.06.list
+echo "deb http://obs.linaro.org/ERP:/18.12/Debian_9 ./" | sudo tee /etc/apt/sources.list.d/erp-18.12.list
+
+sudo apt -q=2 update
+sudo apt -q=2 upgrade -y
+sudo apt -q=2 install -y --no-install-recommends maven git openjdk-8-jdk-headless rpm
+
+# Whole history is required
+git clone https://git.linaro.org/leg/bigdata/drill.git
+
+cd drill
+
+mvn clean -X package -Pdeb -Prpm -DskipTests
+
+cp distribution/target/apache-drill-*/*.deb out/
+cp distribution/target/apache-drill-*/noarch/*.rpm out/
+
+sudo chown -R buildslave:buildslave out