Files
RetroDebian/Jenkinsfile
2026-03-18 02:32:37 +01:00

62 lines
2.3 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
deb="$(ls -1 /root/linux-image-*.deb | head -n1)"
kernpkg="$(dpkg-deb -f "$deb" Package)"
echo "$kernpkg"
deb="$(ls -1 /root/squashfs-modules-*.deb | head -n1)"
squashfspkg="$(dpkg-deb -f "$deb" Package)"
echo "$squashfspkg"
lh_config \
-a i386 \
--binary-images iso \
--bootloader syslinux \
--bootstrap debootstrap \
--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 "$kernpkg $squashfspkg" \
-k retrodebian1
cp /root/*.deb config/chroot_local-packages/
lh_build
ls -al
'''
}
}
stage('Collect ISO') {
steps {
sh '''
set -e
mkdir -p artifacts
find /root/live -name '*.iso' -exec cp -v {} artifacts/ \\;
ls -l artifacts
'''
archiveArtifacts artifacts: 'artifacts/*.iso', fingerprint: true
}
}
}
}