add job to apply tags when based on changes in openstack/releases

Add a new job to run when a patch merges in openstack/releases to apply
the tags described in the patch. For now, only apply those tags to the
openstack/release-test repository so we can test the job. A later patch
will remove that restriction so the job can apply the tags to all
repositories.

Change-Id: I2121781197d3ed824fed91cdebd0ee9ebeb353d2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2016-07-12 11:53:32 -04:00
parent 0cb4ea8a12
commit 34285faf51
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,24 @@
- job:
name: tag-releases
description: Apply tags to repositories based on changes in deliverables files.
node: signing
builders:
- gerrit-git-prep
- revoke-sudo
- shell: |
#!/bin/bash -ex
# Pass the location of the openstack/releases repo to
# release_from_yaml.sh explicitly so it knows where to scan to
# look for modified files.
/usr/local/jenkins/slave_scripts/release-tools/release_from_yaml.sh $(pwd)
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'cover/**'
keep-hierarchy: true
copy-after-failure: true
- console-log

View File

@ -65,6 +65,14 @@ RELEASE_META=$(git show --format=full --show-notes=review $parent | egrep -i '(A
$TOOLSDIR/list_deliverable_changes.py -r $RELEASES_REPO $DELIVERABLES \ $TOOLSDIR/list_deliverable_changes.py -r $RELEASES_REPO $DELIVERABLES \
| while read deliverable series version repo hash announce_to pypi first_full; do | while read deliverable series version repo hash announce_to pypi first_full; do
title "$repo $series $version $hash $announce_to" title "$repo $series $version $hash $announce_to"
# FIXME(dhellmann): While we work out the kinks in the job, we
# only want to actually apply the tags to the release-test
# repository. When we're confident that it is working correctly,
# we can remove this block and apply it to all repositories.
if [ "$repo" != "openstack/release-test" ]; then
echo "SKIPPING during testing phase"
continue
fi
$TOOLSDIR/release.sh $repo $series $version $hash $announce_to $pypi $first_full "$RELEASE_META" $TOOLSDIR/release.sh $repo $series $version $hash $announce_to $pypi $first_full "$RELEASE_META"
done done

View File

@ -11784,6 +11784,7 @@ projects:
- gate-releases-tox-validate - gate-releases-tox-validate
- gate-releases-docs - gate-releases-docs
release-post: release-post:
- tag-releases
- static-releases-publish - static-releases-publish
- name: openstack/renderspec - name: openstack/renderspec