From fc39a169d8af4a3e1510be95c79e3c6deea49645 Mon Sep 17 00:00:00 2001 From: Giso Grimm Date: Sat, 6 Jul 2024 19:34:23 +0200 Subject: [PATCH] try to use qemu --- Jenkinsfile | 64 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index adf2378..2f89e50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ pipeline { } steps {tascar_build_steps("jammy && x86_64 && tascardev")} } - stage( "focal && x86_64 && tascardev") { + stage( "focal && x86_64 && tascardev") { agent { docker { image "hoertech/docker-buildenv:tascar_x86_64-linux-gcc-9" @@ -53,7 +53,7 @@ pipeline { } steps {tascar_build_steps("focal && x86_64 && tascardev")} } - stage( "bionic && x86_64 && tascardev") { + stage( "bionic && x86_64 && tascardev") { agent { docker { image "hoertech/docker-buildenv:tascar_x86_64-linux-gcc-7" @@ -64,25 +64,49 @@ pipeline { } steps {tascar_build_steps("bionic && x86_64 && tascardev")} } - stage( "bionic && armv7 && tascardev") { - agent {label "bionic && armv7 && tascardev"} + stage( "bionic && armv7 && tascardev") { + agent { + docker { + image "hoertech/docker-buildenv:tascar_armv7-linux-gcc-7" + label "docker_qemu" + alwaysPull true + args "-v /home/u:/home/u --hostname docker" + } + } + //agent {label "bionic && armv7 && tascardev"} steps {tascar_build_steps("bionic && armv7 && tascardev")} } stage( "bullseye && armv7 && tascardev") { - agent {label "bullseye && armv7 && tascardev"} + agent { + docker { + image "hoertech/docker-buildenv:tascar_armv7-linux-gcc-10" + label "docker_qemu" + alwaysPull true + args "-v /home/u:/home/u --hostname docker" + } + } + //agent {label "bullseye && armv7 && tascardev"} steps {tascar_build_steps("bullseye && armv7 && tascardev")} } stage( "bullseye && aarch64 && tascardev") { - agent {label "bullseye && aarch64 && tascardev"} + agent { + docker { + image "hoertech/docker-buildenv:tascar_aarch64-linux-gcc-10" + label "docker_qemu" + alwaysPull true + args "-v /home/u:/home/u --hostname docker" + } + } + //agent {label "bullseye && aarch64 && tascardev"} steps {tascar_build_steps("bullseye && aarch64 && tascardev")} } - } - } - stage("artifacts") { - agent {label "aptly"} - // do not publish packages for any branches except these - when { anyOf { branch 'master'; branch 'development' } } - steps { + } + } + stage("artifacts") { + agent {label "aptly"} + // do not publish packages for any branches except these + when { anyOf { branch 'master'; branch 'development' } } + steps { // receive all deb packages from tascarpro build unstash "x86_64_jammy" unstash "x86_64_focal" @@ -90,19 +114,19 @@ pipeline { unstash "armv7_bullseye" unstash "aarch64_bullseye" unstash "armv7_bionic" - + // Copies the new debs to the stash of existing debs, sh "make -f htchstorage.mk storage" - + build job: "/Packaging/hoertech-aptly/$BRANCH_NAME", quietPeriod: 300, wait: false - } - } + } + } } post { failure { - mail to: 'giso.grimm@vegri.net', - subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", - body: "Something is wrong with ${env.BUILD_URL} ($GIT_URL)" + mail to: 'giso.grimm@vegri.net', + subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", + body: "Something is wrong with ${env.BUILD_URL} ($GIT_URL)" } } }