1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
pipeline { agent { docker { image 'kernel-builder' } } options { timeout(time: 4, unit: 'HOURS') } stages { stage('Build') { steps { sh 'make defconfig' sh 'make -j$(nproc)' } } stage('Archive') { steps { archiveArtifacts artifacts: 'arch/x86/boot/bzImage', fingerprint: true } } } }