Update the Jenkinsfile.

This commit is contained in:
Username404 2021-03-24 16:39:43 +01:00
parent 91570df79a
commit a9d6b3402d
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

6
Jenkinsfile vendored
View File

@ -1,8 +1,10 @@
pipeline { pipeline { // Multi-branch pipeline script for Yerbacon.
agent any agent any
options { options {
if (env.BRANCH_NAME != 'stable') {
buildDiscarder(logRotator(numToKeepStr: '12', artifactNumToKeepStr: '14')) buildDiscarder(logRotator(numToKeepStr: '12', artifactNumToKeepStr: '14'))
}
sidebarLinks([ sidebarLinks([
[displayName: 'Gitea Repository', iconFileName: '/userContent/Yerbacon.png', urlName: 'https://gits.username404.fr/Username404-59/Yerbacon/src/branch/' + env.BRANCH_NAME] [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 { stages {
stage('Build') { stage('Build') {
steps { 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', buildType: 'release', cleanBuild: true, installation: 'Main'
cmakeBuild buildDir: 'cmake-build-release-arm', 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' 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'