From bfc8dcf549a0df50a2864fcdd2d2115d4f836f1b Mon Sep 17 00:00:00 2001
From: Jay Faulkner <jay@jvf.cc>
Date: Tue, 2 Sep 2014 17:21:14 -0700
Subject: [PATCH] Publish individual files in IPA post job

Consuming the tarball directly in devstack required devstack understand
too many specifics about the layout of the interior of the tarball.
Uploading the files independently allows devstack to pull them down and
put them in glance directly.

Once everything has been migrated to pull the individual files down,
I'll push another merge request to stop publishing ipa-coreos.tar.gz.

As a note, this is part of the larger effort documented here[1] to get
IPA in the Ironic gate.

Once this is merged, https://review.openstack.org/#/c/117384/ will be
updated to utilize IMAGE_URLS and existing tooling to get IPA ramdisks
into glance.

1: http://lists.openstack.org/pipermail/openstack-dev/2014-August/
   042357.html

Change-Id: Ifa0b450d37d57b5eded3f8260f895cd9e97fd39e
---
 .../config/ironic-python-agent-jobs.yaml                  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/openstack_project/files/jenkins_job_builder/config/ironic-python-agent-jobs.yaml b/modules/openstack_project/files/jenkins_job_builder/config/ironic-python-agent-jobs.yaml
index 87768dd2c8..25185e1f1b 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/ironic-python-agent-jobs.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/ironic-python-agent-jobs.yaml
@@ -28,6 +28,14 @@
       - scp:
           site: 'tarballs.openstack.org'
           files:
+            - source: 'imagebuild/coreos/UPLOAD/coreos_production_pxe.vmlinuz'
+              target: 'tarballs/ironic-python-agent/coreos/files'
+              keep-hierarchy: false
+              copy-after-failure: false
+            - source: 'imagebuild/coreos/UPLOAD/coreos_production_pxe-oem.cpio.gz'
+              target: 'tarballs/ironic-python-agent/coreos/files'
+              keep-hierarchy: false
+              copy-after-failure: false
             - source: 'ipa-coreos.tar.gz'
               target: 'tarballs/ironic-python-agent/coreos'
               keep-hierarchy: false