Make the variables in the Jenkinsfile final
This commit is contained in:
parent
ac12773e6c
commit
d9b5e862fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue