diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-14 09:59:41 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-14 15:42:31 +0200 |
commit | c636fc4747fba85600e6801ebb492b60fb993c47 (patch) | |
tree | 562900d673a3a1a6a24bfc7e71f9f754a1e6608c /Jenkinsfile | |
parent | 39ae5d423cb2935f38a7ca8b91cf003a600578c2 (diff) | |
download | vyos-build-c636fc4747fba85600e6801ebb492b60fb993c47.tar.gz vyos-build-c636fc4747fba85600e6801ebb492b60fb993c47.zip |
Jenkins: remove individual package build and only build the ISO
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 93 |
1 files changed, 8 insertions, 85 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index e8b83415..a5bbd89c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,100 +79,23 @@ pipeline { args '--privileged --sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006' } } - stages { - stage('VyOS Packages') { - steps { - script { - def build = [:] - // get a list of available package from scripts/build-packages - packageList = sh( - script: "scripts/build-packages -l | grep '*' | sed -e 's/ \\* //'", - returnStdout: true - ).split("\r?\n") - - packageList.each { pkg -> - skipList = ['vyos-kernel', 'vyos-wireguard', 'vyos-accel-ppp'] - if (pkg in skipList) { - return - } - - // add each object from 'packageList' to the 'build' array - build[pkg] = { - // we're already in the script{} block, so do our advanced stuff here - sh( - script: "scripts/build-packages -vvv -b ${pkg}", - returnStdout: true - ) - } - } - // Still within the 'Script' block, run the parallel array object - parallel build - } - } - } - - stage('Kernel') { + stage('Configure') { steps { - sh "scripts/build-packages -vvv -b vyos-kernel" - } - } - - stage('Kernel Modules') { - steps { - script { - def build = [:] - kernelModules = ['vyos-wireguard', 'vyos-accel-ppp'] - kernelModules.each { pkg -> - // add each object from 'packageList' to the 'build' array - build[pkg] = { - // we're already in the script{} block, so do our advanced stuff here - sh( - script: "scripts/build-packages -vvv -b ${pkg}", - returnStdout: true - ) - } - } - // Still within the 'Script' block, run the parallel array object - parallel build - } - } - } - - stage('Intel Drivers') { - steps { - sh "KSRC=\$(pwd)/packages/vyos-kernel scripts/build-intel-drivers" - } - } - - stage('List Packages') { - steps { - sh "find packages/ -maxdepth 1 -type f -print0 | xargs -0r ls" + sh """ + pwd + ./configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/" + """ } } - - stage('ISO Image') { + stage('Build') { steps { - sh ''' - #!/bin/sh - - # we do not want to fetch VyOS packages from the mirror, - # we rather prefer all build by ourself! - sed -i '/vyos_repo_entry/d' scripts/live-build-config - - # remove debug packages - rm -f packages/*-dbg_*.deb - - # Configure the ISO - ./configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/" - - # Finally build our ISO + sh """ sudo make iso - ''' + """ } } } - post { success { archiveArtifacts artifacts: 'build/live-image-*.iso', fingerprint: true |