Pass "-s" to the strip executable in the Jenkinsfile

This commit is contained in:
Username404 2021-10-20 21:44:54 +02:00
parent 30ef4500f2
commit 4771aed6b4
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@ def buildTarget(String path, String rpmArch = 'noarch', String debArch = 'noarch
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",
generator: fileExists('/usr/bin/ninja') ? 'Ninja' : 'Unix Makefiles'
cmake arguments: "--build ./cmake-build-${packageArch}${suffix} --target ybcon", installation: 'Latest'
sh "/usr/bin/${path}-strip ./cmake-build-${packageArch}${suffix}/ybcon*"
sh "/usr/bin/${path}-strip -s ./cmake-build-${packageArch}${suffix}/ybcon*"
cpack installation: 'Latest', workingDir: "cmake-build-${packageArch}${suffix}"
}