Define the buildTarget function outside of the Jenkins pipeline

This commit is contained in:
Username404 2021-08-15 16:17:10 +02:00
parent 28fcc49572
commit 42ae8e1342
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

6
Jenkinsfile vendored
View File

@ -1,6 +1,3 @@
pipeline { // Multi-branch pipeline script for Yerbacon.
agent any
def buildTarget(String path, String rpmArch, String debArch) {
cmakeBuild buildDir: 'cmake-build-${debArch}', buildType: 'release', cleanBuild: true, installation: 'Main'
cmake arguments: '--build ./cmake-build-${debArch} --target ybcon', installation: 'Main',
@ -8,6 +5,9 @@ pipeline { // Multi-branch pipeline script for Yerbacon.
cpack installation: 'Main', workingDir: 'cmake-build-{debArch}'
}
pipeline { // Multi-branch pipeline script for Yerbacon.
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '48', artifactNumToKeepStr: '96'))
timeout(time: 8, unit: 'MINUTES')