Propose patches to os-service-types from service-types-authority

When we publish new service-types.json files we need to update the
builtin fallback data for os-service-types. Add a proposal script update
and job.

Only trigger the job after the publish job runs, since the proposal
script fetches the json file from the publication site.

Change-Id: I139235e4e4644700e4197737c5ce62ba32b86b07
This commit is contained in:
Monty Taylor 2017-07-17 10:55:54 -05:00
parent ed200bb7d0
commit 986f65738d
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
3 changed files with 25 additions and 1 deletions

View File

@ -53,3 +53,19 @@
keep-hierarchy: false
copy-after-failure: false
- console-log
- job:
name: propose-service-types-update
description: Update os-service-types from Service Types Authority
node: proposal
builders:
- proposal-slave-cleanup
- revoke-sudo
- link-logs
- net-info
- zuul-git-prep
- shell: /usr/local/jenkins/slave_scripts/propose_update.sh os-service-types
publishers:
- console-log

View File

@ -72,6 +72,13 @@ elif [ "$OWN_PROJECT" == "openstack-ansible-tests" ] ; then
function update {
bash /usr/local/jenkins/slave_scripts/sync_openstack_ansible_common_files.sh $1
}
elif [ "$OWN_PROJECT" == "os-service-types" ] ; then
INITIAL_COMMIT_MSG="Updated from OpenStack Service Type Authority"
TOPIC="openstack/os-service-types/sync-service-types-authority"
PROJECTS="openstack/os-service-types"
function update {
curl https://service-types.openstack.org/service-types.json > os_service_types/data/service-types.json
}
else
echo "Unknown project $1" >2
exit 1

View File

@ -16842,7 +16842,8 @@ projects:
- gate-service-types-authority-pep8-ubuntu-xenial
- gate-service-types-authority-validate
post:
- publish-service-types-authority
- publish-service-types-authority:
- propose-service-types-update
- name: openstack/shaker
template: