puppet-modules-tarball: use zuul-git-prep builder
Use zuul-git-prep builder so we clone the repo into WORKSPACE and we can
find the tarball before uploading it.
Co-Authorized-By: Paul Belanger
- install-distro-packages
- puppet-agent-install
- revoke-sudo
- - zuul-clone:
- project: $ZUUL_PROJECT
+ - zuul-git-prep
- shell: |
#!/bin/bash -xe
# NOTE(mwhahaha): puppet from puppet-agent-install builder is not in
# the standard path, so add puppetlabs bin to the path
export PATH=$PATH:/opt/puppetlabs/bin
- cd $ZUUL_PROJECT
# try to find the modulename, ex: puppet-aodh
# we have to use sed because workspace is puppet-aodh-branch-tarball
# or puppet-aodh-tarball and not puppet-aodh.
else
mv pkg/*.tar.gz dist/$MODULE_NAME.tar.gz
fi
- mv dist ../
publishers:
- tarball:
