From a9d6b3402d9dedbdf16c852c30b77512e9fdc916 Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 24 Mar 2021 16:39:43 +0100 Subject: [PATCH] Update the Jenkinsfile. --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68561f9..1c6cea2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,10 @@ -pipeline { +pipeline { // Multi-branch pipeline script for Yerbacon. agent any options { - buildDiscarder(logRotator(numToKeepStr: '12', artifactNumToKeepStr: '14')) + if (env.BRANCH_NAME != 'stable') { + buildDiscarder(logRotator(numToKeepStr: '12', artifactNumToKeepStr: '14')) + } sidebarLinks([ [displayName: 'Gitea Repository', iconFileName: '/userContent/Yerbacon.png', urlName: 'https://gits.username404.fr/Username404-59/Yerbacon/src/branch/' + env.BRANCH_NAME] ]) @@ -13,7 +15,7 @@ pipeline { stages { stage('Build') { steps { - echo 'Building..' + echo "Building the ${env.BRANCH_NAME} branch.." cmakeBuild buildDir: 'cmake-build-release', buildType: 'release', cleanBuild: true, installation: 'Main' cmakeBuild buildDir: 'cmake-build-release-arm', buildType: 'release', cleanBuild: true, installation: 'Main', cmakeArgs: '-DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabi-g++ -DCMAKE_LINKER=/usr/bin/arm-linux-gnueabi-ld.gold -DCMAKE_AR=/usr/bin/arm-linux-gnueabi-ar -DCPACK_RPM_PACKAGE_ARCHITECTURE=armv4l -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=armel'