Add Ironic Python Agent builder

This patch will build and upload the files required to boot the
Ironic Python Agent ramdisk using CoreOS and a Docker container.
The Ironic Python Agent is one of the methods to provision servers
in Ironic. This will make testing the agent much easier.

Change-Id: I34ea9a196c5ac1954a4ebd6d27850f6b6e56afa7
Co-Authored-By: Jay Faulkner <jay@jvf.cc>
This commit is contained in:
Josh Gachnang 2014-06-20 14:15:59 -07:00 committed by Jay Faulkner
parent 607b2f2ab4
commit eb7d4d31e2
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
- job:
name: 'ironic-python-agent-buildimage-coreos'
node: 'bare-trusty'
builders:
- link-logs
- net-info
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
sudo apt-get update
sudo apt-get install docker.io
sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
make
tar czf $WORKSPACE/ipa-coreos.tar.gz $HOME/UPLOAD/coreos_production_pxe_image-oem.cpio.gz $HOME/UPLOAD/coreos_production_pxe.vmlinuz
echo "CoreOS IPA image uploaded to: http://tarballs.openstack.org/ironic-python-agent/coreos/ipa-coreos.tar.gz"
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: 'ipa-coreos.tar.gz'
target: 'tarballs/ironic-python-agent/coreos/ipa-coreos.tar.gz'
keep-hierarchy: false
copy-after-failure: false
- console-log

View File

@ -2073,6 +2073,8 @@ projects:
- gate-ironic-python-agent-pep8
- gate-ironic-python-agent-python26
- gate-ironic-python-agent-python27
post:
- ironic-python-agent-buildimage-coreos
# This is not strictly necessary; there is currently a transitive
# relationship between g-t-dsvm,