diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2017-08-02 11:21:20 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-08-02 11:21:20 +0300 |
commit | a34097842c703896e20ad2e1cfde67557d5c3ca6 (patch) | |
tree | 51640f2cccbc72eaef0e3f73d991abaffa4a16f3 /bigdata-kibana.yaml | |
parent | 53dc867cde4db011f6e42a6c1a1523149f9b0459 (diff) |
bigdata-kibana: rename the build job
Avoid short name. Use of long name is preferred.
Change-Id: Ib5ee08e621a28140658dc07afbc147296157abf3
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'bigdata-kibana.yaml')
-rw-r--r-- | bigdata-kibana.yaml | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/bigdata-kibana.yaml b/bigdata-kibana.yaml new file mode 100644 index 0000000000..acb9c96c6d --- /dev/null +++ b/bigdata-kibana.yaml @@ -0,0 +1,71 @@ +- job: + name: bigdata-kibana + 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 - Kibana' + 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 \ + git build-essential automake autoconf libtool libffi-dev \ + ruby-dev rubygems python curl zip rpm python-requests + sudo gem install fpm -v 1.5.0 + sudo gem install pleaserun -v 0.0.24 + + # clone the Kibana definitions + git clone --depth 1 https://git.linaro.org/leg/bigdata/kibana.git -b v5.4.1 ${WORKSPACE}/kibana + + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash + source ${HOME}/.profile + + # Install the version of node.js listed in the .node-version file (this can be easily automated with tools such as nvm and avn) + nvm install $(cat ${WORKSPACE}/kibana/.node-version) + + cd ${WORKSPACE}/kibana + + # Install npm dependencies + npm install + npm rebuild node-sass + npm run build -- --deb --release + - linaro-publish-token + - shell: | + #!/bin/bash + + mkdir -p out + cp -a ${WORKSPACE}/kibana/kibana-*-arm64.deb* out/ + + # 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 \ + out components/bigdata/elk/kibana/${BUILD_NUMBER} + publishers: + - email-ext: + recipients: 'leg-bigdata@linaro.org, fathi.boudra@linaro.org' |