569382803e
Purpose of this commit is to add Zuul job for building Monasca-Kibana-Plugin. List of changes: - Configuring ESLint with *.json file - Fixing lint error - Adding Zuul job for building Monasca-Kibana-Plugin Please notice that nodejs10-jobs are removed, cause of changes related to building plugin. It should be fixed. Change-Id: I9384c0e7995d90df42ee13ab735ec768cef65d3b
24 lines
757 B
Bash
Executable File
24 lines
757 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x # Print each script step.
|
|
set -eo pipefail # Exit the script if any statement returns error.
|
|
|
|
cd $KIBANA_PATH
|
|
git checkout -f 7.3
|
|
cp -avr /home/zuul/src/opendev.org/openstack/monasca-kibana-plugin $KIBANA_PATH/plugins
|
|
|
|
chmod -R 777 $KIBANA_PATH
|
|
chown -R zuul: $KIBANA_PATH
|
|
|
|
runuser -l zuul -c '
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash;
|
|
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh";
|
|
VERSION="10.15.2";
|
|
nvm install ${VERSION};
|
|
nvm use ${VERSION};
|
|
npm install -g yarn;
|
|
cd /home/zuul/src/github.com/elastic/kibana;
|
|
yarn kbn bootstrap;
|
|
cd plugins/monasca-kibana-plugin
|
|
yarn build' |