publish puppet-aodh in tarball for master
This is an experimental thing for now, to get some feedback. The idea is to follow other Python projects and publish a release of Puppet Modules on tarballs server. This first implementation will publish a tarball of puppet-aodh module for each patch sent in master. Change-Id: Iac61083ed3d0a587186dfe0ba6f61ae7f93a746a
This commit is contained in:
parent
ea95a4e126
commit
efec06c294
@ -5099,6 +5099,7 @@
|
|||||||
- puppet-beaker-jobs-centos7:
|
- puppet-beaker-jobs-centos7:
|
||||||
job-suffix: ''
|
job-suffix: ''
|
||||||
branch-override: default
|
branch-override: default
|
||||||
|
- '{name}-tarball'
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: puppet-apparmor
|
name: puppet-apparmor
|
||||||
|
@ -14,12 +14,25 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
# this is a puppet module
|
||||||
|
if [ -r metadata.json ]; then
|
||||||
|
MODULE_NAME=$(basename `git rev-parse --show-toplevel`)
|
||||||
|
puppet module build .
|
||||||
|
# so we can re-use "tarball" publisher
|
||||||
|
mv pkg dist
|
||||||
|
if [ -z "$ZUUL_REFNAME" ] || [ "$ZUUL_REFNAME" == "master" ]; then
|
||||||
|
mv dist/*.tar.gz dist/$MODULE_NAME-master.tar.gz
|
||||||
|
# need to figure how to deal with stable branches
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# this a python project
|
||||||
venv=${1:-venv}
|
venv=${1:-venv}
|
||||||
|
|
||||||
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
||||||
|
|
||||||
rm -f dist/*.tar.gz
|
rm -f dist/*.tar.gz
|
||||||
tox -e$venv python setup.py sdist
|
tox -e$venv python setup.py sdist
|
||||||
|
fi
|
||||||
|
|
||||||
FILES=dist/*.tar.gz
|
FILES=dist/*.tar.gz
|
||||||
for f in $FILES; do
|
for f in $FILES; do
|
||||||
|
@ -8776,6 +8776,8 @@ projects:
|
|||||||
- name: puppet-openstack-integration-jobs-scenario001
|
- name: puppet-openstack-integration-jobs-scenario001
|
||||||
check-tripleo:
|
check-tripleo:
|
||||||
- gate-tripleo-ci-f22-nonha
|
- gate-tripleo-ci-f22-nonha
|
||||||
|
post:
|
||||||
|
- puppet-aodh-tarball
|
||||||
|
|
||||||
- name: openstack/puppet-autossh
|
- name: openstack/puppet-autossh
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user