aboutsummaryrefslogtreecommitdiff
path: root/bigdata-elasticsearch.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-08-02 12:12:05 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2017-08-02 09:12:51 +0000
commit0de89d0a1384f3c500e81c8bac6f4136c79193c1 (patch)
treec1c2c2af4ab4209333c5e37bc2f7c756399d72fb /bigdata-elasticsearch.yaml
parentd961c52d3179e4c67376b5a9762bc55a5fec1b8d (diff)
bigdata-elasticsearch: rename the build job
Change-Id: Ie5089bfad34482a12b8e7b04109358292b3c272a Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'bigdata-elasticsearch.yaml')
-rw-r--r--bigdata-elasticsearch.yaml70
1 files changed, 70 insertions, 0 deletions
diff --git a/bigdata-elasticsearch.yaml b/bigdata-elasticsearch.yaml
new file mode 100644
index 00000000..9de2de7f
--- /dev/null
+++ b/bigdata-elasticsearch.yaml
@@ -0,0 +1,70 @@
+- job:
+ name: bigdata-elasticsearch
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ linaro:
+ - job-read
+ - job-extended-read
+ - job-build
+ - job-cancel
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 30
+ artifact-num-to-keep: 1
+ disabled: false
+ node: docker-jessie-arm64
+ display-name: 'Bigdata ELK - ElasticSearch'
+ wrappers:
+ - timestamps
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ # setup environments
+ export LANG="en_US.UTF-8"
+
+ # install prerequisites
+ sudo apt-get -q=2 update
+ sudo apt-get -q=2 -y install -t jessie-backports \
+ openjdk-8-jdk git build-essential automake autoconf libtool \
+ curl unzip rpm texinfo locales-all tar wget python-requests
+
+ wget -q https://services.gradle.org/distributions/gradle-3.5.1-bin.zip -O /tmp/gradle-3.5.1-bin.zip
+ unzip /tmp/gradle-3.5.1-bin.zip
+ ln -s gradle-3.5.1 gradle
+
+ # setup environments
+ export PATH=${WORKSPACE}/gradle/bin:$PATH
+ export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
+
+ # setup JAVA_HOME
+ cd /usr/lib/jvm/java-8-openjdk-*
+ export JAVA_HOME=${PWD}
+
+ # clone the ElasticSearch definitions
+ git clone --depth 1 https://git.linaro.org/leg/bigdata/elasticsearch.git -b v5.4.1 ${WORKSPACE}/elasticsearch
+ cd ${WORKSPACE}/elasticsearch
+
+ # okay everything is in place
+ gradle assemble -Dbuild.snapshot=false
+ - linaro-publish-token
+ - shell: |
+ #!/bin/bash
+
+ # Publish
+ test -d ${HOME}/bin || mkdir ${HOME}/bin
+ wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
+ time python ${HOME}/bin/linaro-cp.py \
+ --link-latest \
+ ${WORKSPACE}/elasticsearch/distribution/deb/build/distributions \
+ components/bigdata/elk/elasticsearch/${BUILD_NUMBER}
+ publishers:
+ - email-ext:
+ recipients: 'leg-bigdata@linaro.org, fathi.boudra@linaro.org'