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:
parent
f1d6d491d5
commit
d8f93561f7
@ -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
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user