f0f1463aae
Ironic currently automatically builds and uploads a coreos based IPA image so that CI jobs don't have to build it every time and so that people wanting to use Ironic don't have to always build their own. This patch adds a job to also build the tinyipa version of IPA, so that we can get the same optimisations. Depends-On: I9d879689c8e88768aaa96d0033b62d062f9cdc27 Change-Id: I56688bbb3efd5b5a0a14570f4b9733a76d31b71b
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
- job:
|
|
name: 'gate-ironic-python-agent-buildimage-coreos'
|
|
node: ubuntu-trusty
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- gerrit-git-prep
|
|
- install-distro-packages
|
|
- shell: |
|
|
imagebuild/coreos/full_trusty_build.sh
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'ironic-python-agent-buildimage-{image-type}'
|
|
node: ubuntu-trusty
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- gerrit-git-prep
|
|
- install-distro-packages
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
BRANCH=$ZUUL_REFNAME
|
|
export BRANCH_PATH=`echo $BRANCH | tr / -`
|
|
|
|
mkdir UPLOAD_RAW
|
|
mkdir UPLOAD_TAR
|
|
|
|
type="{image-type}"
|
|
case $type in
|
|
tinyipa)
|
|
export BUILD_AND_INSTALL_TINYIPA=true
|
|
(cd imagebuild/tinyipa && make)
|
|
mv imagebuild/tinyipa/tinyipa*.tar.gz UPLOAD_TAR
|
|
mv imagebuild/tinyipa/tinyipa*.* UPLOAD_RAW
|
|
;;
|
|
coreos)
|
|
imagebuild/coreos/full_trusty_build.sh
|
|
mv imagebuild/coreos/UPLOAD/coreos_production_pxe* UPLOAD_RAW
|
|
mv ipa-coreos*.tar.gz UPLOAD_TAR
|
|
;;
|
|
esac
|
|
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'tarballs.openstack.org'
|
|
files:
|
|
- source: 'UPLOAD_RAW/*'
|
|
target: 'tarballs/ironic-python-agent/{image-type}/files/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- source: 'UPLOAD_TAR/*'
|
|
target: 'tarballs/ironic-python-agent/{image-type}/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- console-log
|