Merge "Add job to propose tag merges"
This commit is contained in:
commit
b09cb5b4d2
27
modules/jenkins/files/slave_scripts/merge_tags.sh
Executable file
27
modules/jenkins/files/slave_scripts/merge_tags.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
TAG=$1
|
||||
|
||||
git config user.name "OpenStack Jenkins"
|
||||
git config user.email "jenkins@openstack.org"
|
||||
git config gitreview.username "jenkins"
|
||||
|
||||
git review -s
|
||||
git checkout master
|
||||
git reset --hard origin/master
|
||||
git merge -s ours $TAG
|
||||
# Get a Change-Id
|
||||
GIT_EDITOR=true git commit --amend
|
||||
git review -R -t merge/release-tag
|
@ -18,7 +18,25 @@
|
||||
- console-log
|
||||
|
||||
|
||||
- job-template:
|
||||
name: '{name}-merge-release-tags'
|
||||
concurrent: false
|
||||
|
||||
builders:
|
||||
- gerrit-git-prep
|
||||
- shell: |
|
||||
#!/bin/bash -xe
|
||||
TAG=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'`
|
||||
/usr/local/jenkins/slave_scripts/merge_tags.sh $TAG
|
||||
|
||||
publishers:
|
||||
- console-log
|
||||
|
||||
node: 'proposal'
|
||||
|
||||
|
||||
- job-group:
|
||||
name: openstack-publish-jobs
|
||||
jobs:
|
||||
- '{name}-docs'
|
||||
- '{name}-merge-release-tags'
|
||||
|
@ -233,6 +233,8 @@ jobs:
|
||||
branch: ^(?!stable/(folsom|grizzly)).*$
|
||||
- name: manuals-upstream-translation-update
|
||||
branch: ^master$
|
||||
- name: ^.*-merge-release-tags$
|
||||
branch: milestone-proposed
|
||||
- name: gate-hacking-python33
|
||||
voting: false
|
||||
- name: gate-hacking-integration-nova
|
||||
@ -603,6 +605,7 @@ projects:
|
||||
release:
|
||||
- cinder-tarball
|
||||
- cinder-docs
|
||||
- cinder-merge-release-tags
|
||||
periodic:
|
||||
- cinder-propose-translation-update
|
||||
- periodic-cinder-docs-stable-grizzly
|
||||
@ -648,6 +651,7 @@ projects:
|
||||
release:
|
||||
- glance-tarball
|
||||
- glance-docs
|
||||
- glance-merge-release-tags
|
||||
periodic:
|
||||
- glance-propose-translation-update
|
||||
- periodic-glance-docs-stable-folsom
|
||||
@ -700,6 +704,7 @@ projects:
|
||||
release:
|
||||
- horizon-tarball
|
||||
- horizon-docs
|
||||
- horizon-merge-release-tags
|
||||
periodic:
|
||||
- periodic-horizon-docs-stable-folsom
|
||||
- periodic-horizon-python26-stable-folsom
|
||||
@ -775,6 +780,7 @@ projects:
|
||||
release:
|
||||
- keystone-tarball
|
||||
- keystone-docs
|
||||
- keystone-merge-release-tags
|
||||
periodic:
|
||||
- keystone-propose-translation-update
|
||||
- periodic-keystone-docs-stable-folsom
|
||||
@ -826,6 +832,7 @@ projects:
|
||||
release:
|
||||
- nova-tarball
|
||||
- nova-docs
|
||||
- nova-merge-release-tags
|
||||
periodic:
|
||||
- nova-propose-translation-update
|
||||
- periodic-nova-docs-stable-folsom
|
||||
@ -1003,6 +1010,7 @@ projects:
|
||||
release:
|
||||
- neutron-tarball
|
||||
- neutron-docs
|
||||
- neutron-merge-release-tags
|
||||
periodic:
|
||||
- neutron-propose-translation-update
|
||||
- periodic-neutron-docs-stable-grizzly
|
||||
@ -1050,6 +1058,7 @@ projects:
|
||||
release:
|
||||
- swift-tarball
|
||||
- swift-docs
|
||||
- swift-merge-release-tags
|
||||
|
||||
- name: openstack/python-ceilometerclient
|
||||
check:
|
||||
@ -1638,6 +1647,7 @@ projects:
|
||||
release:
|
||||
- ceilometer-docs
|
||||
- ceilometer-tarball
|
||||
- ceilometer-merge-release-tags
|
||||
periodic:
|
||||
- ceilometer-propose-translation-update
|
||||
- periodic-ceilometer-docs-stable-grizzly
|
||||
@ -1720,6 +1730,7 @@ projects:
|
||||
release:
|
||||
- heat-tarball
|
||||
- heat-docs
|
||||
- heat-merge-release-tags
|
||||
periodic:
|
||||
- periodic-heat-docs-stable-grizzly
|
||||
- periodic-heat-python26-stable-grizzly
|
||||
@ -1825,6 +1836,7 @@ projects:
|
||||
release:
|
||||
- trove-tarball
|
||||
- trove-docs
|
||||
- trove-merge-release-tags
|
||||
|
||||
- name: openstack/trove-integration
|
||||
check:
|
||||
@ -2908,6 +2920,7 @@ projects:
|
||||
release:
|
||||
- ironic-tarball
|
||||
- ironic-docs
|
||||
- ironic-merge-release-tags
|
||||
|
||||
- name: openstack/python-ironicclient
|
||||
check:
|
||||
|
Loading…
Reference in New Issue
Block a user