project-config/jenkins/jobs/release-jobs.yaml
Andreas Jaeger acf7572d10 s/gerrit-git-prep/zuul-git-prep/g
We do not need gerrit-git-prep anymore, zuul-git-prep works on all our
slaves and has the advantage of using zuul-cloner so that the local
cache is used and Depends-On works.

Remove gerrit-git-prep and use zuul-git-prep instead everywhere.

Change-Id: I2f106af58f78fceaf3c497fe43e6f5a002695645
2017-04-03 19:36:51 +02:00

53 lines
1.5 KiB
YAML

- job:
name: tag-releases
description: Apply tags to repositories based on changes in deliverables files, then create requested branches.
node: signing
builders:
- zuul-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: 'propose-{name}-update-constraints'
node: proposal
builders:
- print-template-name:
template-name: "{template-name}"
- zuul-git-prep
- revoke-sudo
- shell: |
#!/bin/bash
set -x
# 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