project-config/jenkins/jobs/release-jobs.yaml
Doug Hellmann 2f1ea5cd88 add branch automation to the tag-releases job
Rather than creating a new job and then forcing it to run after the
tag-releases job, go ahead and use the existing job and just add the new
step.

Change-Id: I7c481784e8c8137acbd522c654d0fa21e3fe4e0e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-11-28 15:25:14 -05:00

33 lines
1.1 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:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'cover/**'
keep-hierarchy: true
copy-after-failure: true
- console-log