Create publish-openstack-puppet-branch-tarball job

This is the first step at converting puppet publishing jobs into
zuulv3.  This jobs, works very much like the
publish-openstack-python-branch-tarball job.  We'd add this into the
post pipeline to upload artifacts to tarballs.o.o.

Once confirmed working, we can then build the release job.

Change-Id: I02410a78cfe53ed9267e9136e231d2b265da3a83
Depends-On: I4da68c8b1f89e2e04f4b94eebf29905c24aea474
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-10-27 14:27:45 -04:00
parent 8643da6c1c
commit b4ef1f5875
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,9 @@
- hosts: all
roles:
- fetch-puppet-module-output
pre_tasks:
- name: Rename files to branch specific name
shell: "mv *.tar.gz {{ zuul.project.short_name }}-{{ zuul.branch | replace('/', '-') }}.tar.gz"
args:
chdir: "{{ zuul.project.src_dir }}/pkg"

View File

@ -0,0 +1,7 @@
- hosts: all
roles:
- role: bindep
# NOTE(pabelanger): puppet modules use the build profile to manage
# dependencies for puppet module build.
bindep_profile: build
- revoke-sudo

View File

@ -0,0 +1,6 @@
- hosts: all
tasks:
- name: Build puppet module
command: puppet module build .
args:
chdir: "{{ zuul.project.src_dir }}"

View File

@ -328,6 +328,15 @@
- secret: afsdocs_secret
name: afs
- job:
name: publish-openstack-puppet-branch-tarball
parent: publish-openstack-artifacts
description: |
Publish the results of the puppet-tarball job to tarballs.openstack.org.
pre-run: playbooks/puppet-branch-tarball/pre
run: playbooks/puppet-branch-tarball/run
post-run: playbooks/puppet-branch-tarball/post
- job:
name: publish-openstack-python-branch-tarball
parent: publish-openstack-artifacts