Merge "Install Elasticsearch for searchlight"
This commit is contained in:
commit
0614f57b1c
@ -807,6 +807,25 @@
|
||||
sudo service ssh restart
|
||||
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:
|
||||
|
@ -7170,7 +7170,7 @@
|
||||
doc-publisher-site: docs.openstack.org
|
||||
|
||||
jobs:
|
||||
- python-jobs
|
||||
- python-jobs-searchlight
|
||||
- openstack-publish-jobs
|
||||
- pypi-jobs
|
||||
|
||||
@ -7765,7 +7765,7 @@
|
||||
tarball-site: tarballs.openstack.org
|
||||
doc-publisher-site: docs.openstack.org
|
||||
jobs:
|
||||
- python-jobs
|
||||
- python-jobs-searchlight
|
||||
- openstack-publish-jobs
|
||||
- openstack-releasenotes-jobs
|
||||
- pypi-jobs
|
||||
|
@ -508,3 +508,20 @@
|
||||
# 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
|
||||
|
||||
- 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:
|
||||
- '{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
|
||||
check:
|
||||
- 'gate-{name}-pep8'
|
||||
@ -9796,7 +9815,7 @@ projects:
|
||||
- name: openstack/python-searchlightclient
|
||||
template:
|
||||
- name: merge-check
|
||||
- name: python-jobs
|
||||
- name: python-jobs-searchlight
|
||||
- name: python3-jobs
|
||||
- name: openstack-client-publish-jobs
|
||||
- name: check-requirements
|
||||
@ -10335,7 +10354,7 @@ projects:
|
||||
- name: openstack/searchlight
|
||||
template:
|
||||
- name: merge-check
|
||||
- name: python-jobs
|
||||
- name: python-jobs-searchlight
|
||||
- name: python3-jobs
|
||||
- name: openstack-server-publish-jobs
|
||||
- name: openstack-server-release-jobs
|
||||
|
Loading…
x
Reference in New Issue
Block a user