Re-add the cmake calls in the Jenkinsfile.
This commit is contained in:
parent
b1e5c0f7ea
commit
ed6851f8e7
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -18,9 +18,9 @@ pipeline { // Multi-branch pipeline script for Yerbacon.
|
||||
cmakeBuild buildDir: 'cmake-build-release', buildType: 'release', cleanBuild: true, installation: 'Main'
|
||||
cmakeBuild buildDir: 'cmake-build-release-arm', buildType: 'release', cleanBuild: true, installation: 'Main',
|
||||
cmakeArgs: '-DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabi-g++ -DCMAKE_LINKER=/usr/bin/arm-linux-gnueabi-ld.gold -DCMAKE_AR=/usr/bin/arm-linux-gnueabi-ar -DCPACK_RPM_PACKAGE_ARCHITECTURE=armv4l -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=armel'
|
||||
cmake arguments: '--build ./cmake-build-release --target ybcon -- -j 4', installation: 'Main'
|
||||
cmake arguments: '--build ./cmake-build-release-arm --target ybcon -- -j 4', installation: 'Main'
|
||||
sh 'strip ./cmake-build-*/ybcon'
|
||||
cpack installation: 'Main', workingDir: 'cmake-build-release'
|
||||
cpack installation: 'Main', workingDir: 'cmake-build-release-arm'
|
||||
}
|
||||
}
|
||||
stage('Cross-compile') {
|
||||
@ -36,7 +36,9 @@ pipeline { // Multi-branch pipeline script for Yerbacon.
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying....'
|
||||
cpack installation: 'Main', workingDir: 'cmake-build-release'
|
||||
dir('cmake-build-release') { archiveArtifacts artifacts:'*.deb, *.rpm, *.tar.gz, *.sh', fingerprint: false }
|
||||
cpack installation: 'Main', workingDir: 'cmake-build-release-arm'
|
||||
dir('cmake-build-release-arm') { zip zipFile: './Yerbacon-ARM_lpkg.zip', archive: true, glob: "*.tar.gz, *.sh, *.rpm, *.deb" }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user