Define the buildTarget function outside of the Jenkins pipeline
This commit is contained in:
parent
28fcc49572
commit
42ae8e1342
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user