Add job to propose tag merges
With pbr tag-based versioning, not having the latest release tag in the master branch makes the output a little nasty. Add a job that makes a merge commit containing the tag on a release from milestone-proposed branch. The merge strategy it uses is 'ours' because we're not attempting to use this to keep code lines up to date - the expectation is that content added in milestone-proposed should already be in master. The main thing we want to do is re-connect the revision and tag history with master, so that things like 'git tag --contains' work. Closes-Bug: 1192039 Change-Id: I06c06bd7542ae493e74fdcaa3c4419f84843cd03
This commit is contained in:
parent
4ed9d5b85d
commit
50d8020efe
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
|
- 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:
|
- job-group:
|
||||||
name: openstack-publish-jobs
|
name: openstack-publish-jobs
|
||||||
jobs:
|
jobs:
|
||||||
- '{name}-docs'
|
- '{name}-docs'
|
||||||
|
- '{name}-merge-release-tags'
|
||||||
|
@ -228,6 +228,8 @@ jobs:
|
|||||||
branch: ^(?!stable/(folsom|grizzly)).*$
|
branch: ^(?!stable/(folsom|grizzly)).*$
|
||||||
- name: manuals-upstream-translation-update
|
- name: manuals-upstream-translation-update
|
||||||
branch: ^master$
|
branch: ^master$
|
||||||
|
- name: ^.*-merge-release-tags$
|
||||||
|
branch: milestone-proposed
|
||||||
- name: gate-hacking-python33
|
- name: gate-hacking-python33
|
||||||
voting: false
|
voting: false
|
||||||
- name: gate-hacking-integration-nova
|
- name: gate-hacking-integration-nova
|
||||||
@ -606,6 +608,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- cinder-tarball
|
- cinder-tarball
|
||||||
- cinder-docs
|
- cinder-docs
|
||||||
|
- cinder-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- cinder-propose-translation-update
|
- cinder-propose-translation-update
|
||||||
- periodic-cinder-docs-stable-grizzly
|
- periodic-cinder-docs-stable-grizzly
|
||||||
@ -649,6 +652,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- glance-tarball
|
- glance-tarball
|
||||||
- glance-docs
|
- glance-docs
|
||||||
|
- glance-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- glance-propose-translation-update
|
- glance-propose-translation-update
|
||||||
- periodic-glance-docs-stable-folsom
|
- periodic-glance-docs-stable-folsom
|
||||||
@ -699,6 +703,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- horizon-tarball
|
- horizon-tarball
|
||||||
- horizon-docs
|
- horizon-docs
|
||||||
|
- horizon-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- periodic-horizon-docs-stable-folsom
|
- periodic-horizon-docs-stable-folsom
|
||||||
- periodic-horizon-python26-stable-folsom
|
- periodic-horizon-python26-stable-folsom
|
||||||
@ -770,6 +775,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- keystone-tarball
|
- keystone-tarball
|
||||||
- keystone-docs
|
- keystone-docs
|
||||||
|
- keystone-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- keystone-propose-translation-update
|
- keystone-propose-translation-update
|
||||||
- periodic-keystone-docs-stable-folsom
|
- periodic-keystone-docs-stable-folsom
|
||||||
@ -821,6 +827,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- nova-tarball
|
- nova-tarball
|
||||||
- nova-docs
|
- nova-docs
|
||||||
|
- nova-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- nova-propose-translation-update
|
- nova-propose-translation-update
|
||||||
- periodic-nova-docs-stable-folsom
|
- periodic-nova-docs-stable-folsom
|
||||||
@ -961,6 +968,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- neutron-tarball
|
- neutron-tarball
|
||||||
- neutron-docs
|
- neutron-docs
|
||||||
|
- neutron-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- neutron-propose-translation-update
|
- neutron-propose-translation-update
|
||||||
- periodic-neutron-docs-stable-grizzly
|
- periodic-neutron-docs-stable-grizzly
|
||||||
@ -1006,6 +1014,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- swift-tarball
|
- swift-tarball
|
||||||
- swift-docs
|
- swift-docs
|
||||||
|
- swift-merge-release-tags
|
||||||
|
|
||||||
- name: openstack/python-ceilometerclient
|
- name: openstack/python-ceilometerclient
|
||||||
check:
|
check:
|
||||||
@ -1558,6 +1567,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- ceilometer-docs
|
- ceilometer-docs
|
||||||
- ceilometer-tarball
|
- ceilometer-tarball
|
||||||
|
- ceilometer-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- ceilometer-propose-translation-update
|
- ceilometer-propose-translation-update
|
||||||
- periodic-ceilometer-docs-stable-grizzly
|
- periodic-ceilometer-docs-stable-grizzly
|
||||||
@ -1639,6 +1649,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- heat-tarball
|
- heat-tarball
|
||||||
- heat-docs
|
- heat-docs
|
||||||
|
- heat-merge-release-tags
|
||||||
periodic:
|
periodic:
|
||||||
- periodic-heat-docs-stable-grizzly
|
- periodic-heat-docs-stable-grizzly
|
||||||
- periodic-heat-python26-stable-grizzly
|
- periodic-heat-python26-stable-grizzly
|
||||||
@ -1743,6 +1754,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- trove-tarball
|
- trove-tarball
|
||||||
- trove-docs
|
- trove-docs
|
||||||
|
- trove-merge-release-tags
|
||||||
|
|
||||||
- name: openstack/trove-integration
|
- name: openstack/trove-integration
|
||||||
check:
|
check:
|
||||||
@ -2820,6 +2832,7 @@ projects:
|
|||||||
release:
|
release:
|
||||||
- ironic-tarball
|
- ironic-tarball
|
||||||
- ironic-docs
|
- ironic-docs
|
||||||
|
- ironic-merge-release-tags
|
||||||
|
|
||||||
- name: openstack/python-ironicclient
|
- name: openstack/python-ironicclient
|
||||||
check:
|
check:
|
||||||
|
Loading…
Reference in New Issue
Block a user