Set CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS in the Jenkinsfile to avoid errors caused by dpkg
This commit is contained in:
		
							parent
							
								
									df334ec693
								
							
						
					
					
						commit
						ab7fcee9a2
					
				
							
								
								
									
										2
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@ -1,7 +1,7 @@
 | 
				
			|||||||
def buildTarget(String path, String rpmArch, String debArch, boolean isPackageArchDeb = true) {
 | 
					def buildTarget(String path, String rpmArch, String debArch, boolean isPackageArchDeb = true) {
 | 
				
			||||||
    String packageArch = isPackageArchDeb ? debArch : rpmArch;
 | 
					    String packageArch = isPackageArchDeb ? debArch : rpmArch;
 | 
				
			||||||
    cmakeBuild buildDir: "cmake-build-${packageArch}", buildType: 'release', cleanBuild: true, installation: 'Main',
 | 
					    cmakeBuild buildDir: "cmake-build-${packageArch}", buildType: 'release', cleanBuild: true, installation: 'Main',
 | 
				
			||||||
        cmakeArgs: "-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 -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch}"
 | 
					        cmakeArgs: "-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 -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch} -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS=/usr/${path}/lib/"
 | 
				
			||||||
    cmake arguments: "--build ./cmake-build-${packageArch} --target ybcon", installation: 'Main'
 | 
					    cmake arguments: "--build ./cmake-build-${packageArch} --target ybcon", installation: 'Main'
 | 
				
			||||||
    sh "/usr/bin/${path}-strip ./cmake-build-${packageArch}/ybcon"
 | 
					    sh "/usr/bin/${path}-strip ./cmake-build-${packageArch}/ybcon"
 | 
				
			||||||
    cpack installation: 'Main', workingDir: "cmake-build-${packageArch}"
 | 
					    cpack installation: 'Main', workingDir: "cmake-build-${packageArch}"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user