Make the variables in the Jenkinsfile final

This commit is contained in:
Username404-59 2021-11-07 23:44:42 +01:00
parent ac12773e6c
commit d9b5e862fa
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -1,5 +1,5 @@
def buildTarget(String path, String rpmArch = 'noarch', String debArch = 'noarch', boolean isPackageArchDeb = true, String suffix = '') {
String packageArch = isPackageArchDeb ? debArch : rpmArch;
final String packageArch = isPackageArchDeb ? debArch : rpmArch;
// Note: CMake 3.20 or higher is needed
cmakeBuild buildDir: "cmake-build-${packageArch}${suffix}", buildType: 'release', cleanBuild: true, installation: 'Latest',
cmakeArgs: "--no-warn-unused-cli -DCMAKE_C_COMPILER=/usr/bin/${path}-gcc -DCMAKE_CXX_COMPILER=/usr/bin/${path}-g++ -DCMAKE_LINKER=/usr/bin/${path}-ld.gold -DCMAKE_AR=/usr/bin/${path}-ar -DCMAKE_RC_COMPILER=/usr/bin/${path}-windres -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch} -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS=/usr/${path}/lib/ -DNO_CCACHE=ON",
@ -9,7 +9,7 @@ def buildTarget(String path, String rpmArch = 'noarch', String debArch = 'noarch
cpack installation: 'Latest', workingDir: "cmake-build-${packageArch}${suffix}"
}
String windowsSuffix = '-windows'
final String windowsSuffix = '-windows'
/* Required Plugins:
- CMake