project-config/jenkins/jobs/release-jobs.yaml
Doug Hellmann c9c277707e move release step for updating constraints to after the PyPI upload
We have a race condition in the jobs for patches to
openstack/requirements submitted by the release jobs because the
packages are not yet on PyPI when the patch is proposed to update the
constraints file. This change moves the constraint update portion of the
release job to a separate job and schedules it to run as a dependency of
the PyPI upload job.

Change-Id: Idce73ca3813858050e8f64ece44e838266aaf5d6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-12-19 13:46:08 -05:00

55 lines
1.6 KiB
YAML

- job:
name: tag-releases
description: Apply tags to repositories based on changes in deliverables files, then create requested branches.
node: signing
builders:
- gerrit-git-prep
- revoke-sudo
- shell: |
#!/bin/bash -ex
# Tell the launchpad script run from release.sh where it's
# credentials file is.
export LP_CREDS_FILE=$HOME/.launchpadlib/creds
# 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)
# After we have tagged, create any new branches.
/usr/local/jenkins/slave_scripts/release-tools/branch_from_yaml.sh $(pwd)
publishers:
- console-log
# This job runs after a repository has been tagged to update the
# upper-constraints.txt list in the openstack/requirements repository.
- job-template:
name: '{name}-update-constraints'
node: signing
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- revoke-sudo
- shell: |
#!/bin/bash
set -x
SERIES="blah"
# Save the version that was just tagged by parsing
# ref/tags/VALUE to get VALUE.
VERSION=$(echo $ZUUL_REF | cut -f3 -d/)
/usr/local/jenkins/slave_scripts/release-tools/update_constraints.sh $VERSION
publishers:
- test-results
- console-log