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:
parent
8643da6c1c
commit
b4ef1f5875
9
playbooks/puppet-branch-tarball/post.yaml
Normal file
9
playbooks/puppet-branch-tarball/post.yaml
Normal 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"
|
7
playbooks/puppet-branch-tarball/pre.yaml
Normal file
7
playbooks/puppet-branch-tarball/pre.yaml
Normal 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
|
6
playbooks/puppet-branch-tarball/run.yaml
Normal file
6
playbooks/puppet-branch-tarball/run.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Build puppet module
|
||||
command: puppet module build .
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user