Created
April 9, 2015 09:10
-
-
Save mika/00806600888a9c7e23dc to your computer and use it in GitHub Desktop.
j-d-g: build Debian *and* Ubuntu on plain Debian systems with jenkins-debian-glue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get -y install ubuntu-archive-keyring | |
$ grep '^PBUILDER' /etc/jenkins/debian_glue | |
PBUILDER_CONFIG=/etc/jenkins/pbuilderrc | |
$ cat /etc/jenkins/pbuilderrc | |
DEBIAN_SUITES=("wheezy" "jessie" "sid") | |
DEBIAN_MIRROR="cloudfront.debian.net" | |
UBUNTU_MIRROR="mirrors.kernel.org" | |
if $(echo ${DEBIAN_SUITES[@]} | grep -q "${DIST}"); then | |
# Debian configuration | |
MIRRORSITE="http://$DEBIAN_MIRROR/debian/" | |
COMPONENTS="main contrib non-free" | |
DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg") | |
else | |
# Ubuntu configuration | |
MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/" | |
COMPONENTS="main restricted universe multiverse" | |
DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg") | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment