From 4771aed6b47c53115e8a153a14c56b14628dba0b Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 20 Oct 2021 21:44:54 +0200 Subject: [PATCH] Pass "-s" to the strip executable in the Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 30bf53b..7e2b134 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" }