node('metal-amd64') {
stage ('Checkout') {
deleteDir()
git url: 'https://git.launchpad.net/cloud-init', branch: 'master'
}
stage ('Unit & Style Tests') {
sh 'tox'
sh 'tox -e tip-pycodestyle'
sh 'tox -e tip-pyflakes'
sh 'tox -e tip-pylint'
}
stage ('Ubuntu LTS: Build') {
sh 'git checkout .'
sh './packages/bddeb -S'
sh 'sbuild --nolog --verbose --dist=xenial cloud-init_*.dsc'
}
stage ('Ubuntu LTS: Integration') {
sh 'python3 -m tests.cloud_tests run --verbose --os-name xenial --test modules/apt_configure_sources_list.yaml --test modules/ntp_servers --test modules/set_password_list --test modules/user_groups --deb cloud-init_*_all.deb'
}
stage ('CentOS 6 & 7: Build & Test') {
sh 'http_proxy="http://squid.internal:3128" ./tools/run-centos -r -u 6'
sh 'http_proxy="http://squid.internal:3128" ./tools/run-centos -r -u 7'
}
}