
Without -y, apt wants an interactive response, which is impossible in jenkins. Change-Id: I8d298c5e24a27ff8e3cfd3c8cd83c7961d8d9e0c
29 lines
1006 B
YAML
29 lines
1006 B
YAML
- 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 -y 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
|