Pass "-s" to the strip executable in the Jenkinsfile
This commit is contained in:
parent
30ef4500f2
commit
4771aed6b4
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue