Merge "Install Elasticsearch for searchlight"
This commit is contained in:
@@ -807,6 +807,25 @@
|
|||||||
sudo service ssh restart
|
sudo service ssh restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Install specific elasticsearch version as needed for searchlight.
|
||||||
|
- builder:
|
||||||
|
name: elasticsearch-install
|
||||||
|
builders:
|
||||||
|
- shell: |
|
||||||
|
#!/bin/bash -xe
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y openjdk-7-jre
|
||||||
|
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.deb
|
||||||
|
sudo dpkg -i elasticsearch-1.7.5.deb
|
||||||
|
|
||||||
|
#Switch to tar extract if service start doesn't work.
|
||||||
|
#wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
|
||||||
|
#tar -zxvf elasticsearch-1.7.5.tar.gz
|
||||||
|
|
||||||
|
#Make 'elasticsearch' binary callable from within functional tests
|
||||||
|
sudo ln -s /usr/share/elasticsearch/bin/elasticsearch /usr/local/bin/elasticsearch
|
||||||
|
|
||||||
# ======================================================================
|
# ======================================================================
|
||||||
|
|
||||||
- wrapper:
|
- wrapper:
|
||||||
|
|||||||
@@ -7170,7 +7170,7 @@
|
|||||||
doc-publisher-site: docs.openstack.org
|
doc-publisher-site: docs.openstack.org
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs-searchlight
|
||||||
- openstack-publish-jobs
|
- openstack-publish-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|
||||||
@@ -7765,7 +7765,7 @@
|
|||||||
tarball-site: tarballs.openstack.org
|
tarball-site: tarballs.openstack.org
|
||||||
doc-publisher-site: docs.openstack.org
|
doc-publisher-site: docs.openstack.org
|
||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs-searchlight
|
||||||
- openstack-publish-jobs
|
- openstack-publish-jobs
|
||||||
- openstack-releasenotes-jobs
|
- openstack-releasenotes-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|||||||
@@ -508,3 +508,20 @@
|
|||||||
# pylint isn't standard
|
# pylint isn't standard
|
||||||
# gate-{name}-tox-{envlist} also isn't standard, but is reserved for
|
# gate-{name}-tox-{envlist} also isn't standard, but is reserved for
|
||||||
# projects that want to run specific jobs via tox
|
# projects that want to run specific jobs via tox
|
||||||
|
|
||||||
|
- job-group:
|
||||||
|
name: python-jobs-searchlight
|
||||||
|
jobs:
|
||||||
|
- '{name}-coverage'
|
||||||
|
- 'gate-{name}-pep8'
|
||||||
|
- 'gate-{name}-python27-searchlight'
|
||||||
|
- 'gate-{name}-python34'
|
||||||
|
- 'gate-{name}-pypy'
|
||||||
|
- 'gate-{name}-docs'
|
||||||
|
- 'gate-{name}-requirements'
|
||||||
|
- '{name}-tarball'
|
||||||
|
- '{name}-branch-tarball'
|
||||||
|
- '{name}-announce-release'
|
||||||
|
# pylint isn't standard
|
||||||
|
# gate-{name}-tox-{envlist} also isn't standard, but is reserved for
|
||||||
|
# projects that want to run specific jobs via tox
|
||||||
|
|||||||
24
jenkins/jobs/searchlight.yaml
Normal file
24
jenkins/jobs/searchlight.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
- job-template:
|
||||||
|
name: 'gate-{name}-python27-searchlight'
|
||||||
|
|
||||||
|
wrappers:
|
||||||
|
- build-timeout:
|
||||||
|
timeout: 50
|
||||||
|
- timestamps
|
||||||
|
|
||||||
|
builders:
|
||||||
|
- print-template-name:
|
||||||
|
template-name: "{template-name}"
|
||||||
|
- zuul-git-prep-upper-constraints
|
||||||
|
- elasticsearch-install
|
||||||
|
- install-distro-packages
|
||||||
|
- revoke-sudo
|
||||||
|
- python27
|
||||||
|
- assert-no-extra-files
|
||||||
|
|
||||||
|
publishers:
|
||||||
|
- test-results
|
||||||
|
- console-log
|
||||||
|
- zuul-swift-test-results-with-console
|
||||||
|
|
||||||
|
node: ubuntu-trusty
|
||||||
@@ -308,6 +308,25 @@ project-templates:
|
|||||||
post:
|
post:
|
||||||
- '{name}-branch-tarball'
|
- '{name}-branch-tarball'
|
||||||
|
|
||||||
|
# Invokes the same targets as python-jobs with one change:
|
||||||
|
# python27-searchlight is used instead of python27. The job
|
||||||
|
# python27-searchlight installs extra packages
|
||||||
|
- name: python-jobs-searchlight
|
||||||
|
check:
|
||||||
|
- 'gate-{name}-docs'
|
||||||
|
- 'gate-{name}-pep8'
|
||||||
|
# TODO(jaegerandi): Enable once experimental job works.
|
||||||
|
# - 'gate-{name}-python27-searchlight'
|
||||||
|
gate:
|
||||||
|
- 'gate-{name}-docs'
|
||||||
|
- 'gate-{name}-pep8'
|
||||||
|
# TODO(jaegerandi): Enable once experimental job works.
|
||||||
|
# - 'gate-{name}-python27-searchlight'
|
||||||
|
experimental:
|
||||||
|
- 'gate-{name}-python27-searchlight'
|
||||||
|
post:
|
||||||
|
- '{name}-branch-tarball'
|
||||||
|
|
||||||
- name: python-charm-jobs
|
- name: python-charm-jobs
|
||||||
check:
|
check:
|
||||||
- 'gate-{name}-pep8'
|
- 'gate-{name}-pep8'
|
||||||
@@ -9796,7 +9815,7 @@ projects:
|
|||||||
- name: openstack/python-searchlightclient
|
- name: openstack/python-searchlightclient
|
||||||
template:
|
template:
|
||||||
- name: merge-check
|
- name: merge-check
|
||||||
- name: python-jobs
|
- name: python-jobs-searchlight
|
||||||
- name: python3-jobs
|
- name: python3-jobs
|
||||||
- name: openstack-client-publish-jobs
|
- name: openstack-client-publish-jobs
|
||||||
- name: check-requirements
|
- name: check-requirements
|
||||||
@@ -10335,7 +10354,7 @@ projects:
|
|||||||
- name: openstack/searchlight
|
- name: openstack/searchlight
|
||||||
template:
|
template:
|
||||||
- name: merge-check
|
- name: merge-check
|
||||||
- name: python-jobs
|
- name: python-jobs-searchlight
|
||||||
- name: python3-jobs
|
- name: python3-jobs
|
||||||
- name: openstack-server-publish-jobs
|
- name: openstack-server-publish-jobs
|
||||||
- name: openstack-server-release-jobs
|
- name: openstack-server-release-jobs
|
||||||
|
|||||||
Reference in New Issue
Block a user