48 lines
1.7 KiB
Groovy
48 lines
1.7 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile'
|
|
dir '.'
|
|
label 'pyDABFActory-CIAgent'
|
|
args '--privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined -u root:root'
|
|
}
|
|
}
|
|
stages {
|
|
stage('Build ISO') {
|
|
steps {
|
|
sh '''
|
|
set -e
|
|
cd /root/live
|
|
|
|
kernel_path="$(basename "$(ls -1 /root/linux-*.deb | head -n1)")"
|
|
|
|
lh_config \
|
|
-a i386 \
|
|
--binary-images iso \
|
|
--bootloader syslinux \
|
|
--bootstrap debootstrap \
|
|
--apt apt \
|
|
-f minimal \
|
|
--cache disabled \
|
|
--debconf-frontend noninteractive \
|
|
--debian-installer live \
|
|
--hostname RetroDebian \
|
|
--distribution etch \
|
|
--mirror-bootstrap http://archive.debian.org/debian/ \
|
|
--mirror-binary http://archive.debian.org/debian/ \
|
|
--mirror-binary-security http://archive.debian.org/debian-security/ \
|
|
--mirror-chroot http://archive.debian.org/debian/ \
|
|
--mirror-chroot-security http://archive.debian.org/debian-security/ \
|
|
--union-filesystem unionfs \
|
|
--linux-packages "$kernel_path"
|
|
|
|
mkdir -p /tmp/proc-test
|
|
mount -t proc proc /tmp/proc-test
|
|
umount /tmp/proc-test
|
|
|
|
lh_build
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
} |