Add a tag pipeline

And make the publications job handle running on tags and use the
tag pipeline.

Change-Id: Icdd02318c98c9650a8d8f186f573958ebf346afa
This commit is contained in:
James E. Blair 2013-10-17 09:40:16 -07:00 committed by Jeremy Stanley
parent f1d6d491d5
commit d8f93561f7
2 changed files with 21 additions and 3 deletions

View File

@ -6,13 +6,19 @@
builders: builders:
- gerrit-git-prep - gerrit-git-prep
- shell: |
#!/bin/bash -x
# NAME will either be the branch name or the tag name
NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'`
mkdir -p _out/$NAME
mv * _out/$NAME
publishers: publishers:
- ftp: - ftp:
site: docs.openstack.org site: docs.openstack.org
source: '**' source: '_out/**'
target: 'infra/publications/$ZUUL_REF/' target: 'infra/publications/'
remove-prefix: '' remove-prefix: '_out/'
excludes: '' excludes: ''
- console-log - console-log

View File

@ -52,6 +52,15 @@ pipelines:
- event: ref-updated - event: ref-updated
ref: ^(?!(devnull|refs/.*)).*$ ref: ^(?!(devnull|refs/.*)).*$
- name: tag
description: This pipeline runs jobs in response to any tag event.
manager: IndependentPipelineManager
precedence: high
trigger:
gerrit:
- event: ref-updated
ref: ^refs/tags/.*$
- name: pre-release - name: pre-release
description: This pipeline runs jobs on projects in response to pre-release tags. description: This pipeline runs jobs on projects in response to pre-release tags.
manager: IndependentPipelineManager manager: IndependentPipelineManager
@ -2435,6 +2444,9 @@ projects:
post: post:
- infra-publications-publish - infra-publications-publish
- infra-publications-publish-index - infra-publications-publish-index
tag:
- infra-publications-publish
- infra-publications-publish-index
- name: openstack-infra/puppet-apparmor - name: openstack-infra/puppet-apparmor
check: check: