diff --git a/jenkins/jobs/service-types.yaml b/jenkins/jobs/service-types.yaml index 31dcf0fa7c..dc6aee801f 100644 --- a/jenkins/jobs/service-types.yaml +++ b/jenkins/jobs/service-types.yaml @@ -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 diff --git a/jenkins/scripts/propose_update.sh b/jenkins/scripts/propose_update.sh index c73a4efb8d..8bf2f1f55e 100755 --- a/jenkins/scripts/propose_update.sh +++ b/jenkins/scripts/propose_update.sh @@ -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 diff --git a/zuul/layout.yaml b/zuul/layout.yaml index eb4f132a3f..54b6bcd5e4 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -16936,7 +16936,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: