Jenkins damn it path missing
All checks were successful
JCS-Prod/RSE-Model/pipeline/pr-master This commit looks good

This commit is contained in:
JackCarterSmith 2022-08-13 15:18:02 +02:00
parent a6e3e20bce
commit 4a955f3bbb
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24

10
Jenkinsfile vendored
View File

@ -12,7 +12,7 @@ pipeline {
stage('Prepare') { stage('Prepare') {
steps { steps {
cleanWs() cleanWs()
rtConanClient(id: "conan") rtConanClient(id: "conan", userHome: "/home/jackcartersmith")
} }
} }
stage('Build') { stage('Build') {
@ -35,7 +35,7 @@ pipeline {
dir("build") { dir("build") {
rtConanRun(clientId: "conan", command: "install .. --profile=windows --build=missing") rtConanRun(clientId: "conan", command: "install .. --profile=windows --build=missing")
} }
cmakeBuild buildDir: 'build', cmakeArgs: '-DGNU_HOST=x86_64-w64-mingw32 -DCMAKE_TOOLCHAIN_FILE=../mingw_cross_toolchain.cmake', installation: 'latest', steps: [[args: 'all']] cmakeBuild buildDir: 'build', cmakeArgs: '-DGNU_HOST=x86_64-w64-mingw32 -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw_cross_toolchain.cmake', installation: 'latest', steps: [[args: 'all']]
} }
} }
) )
@ -44,10 +44,10 @@ pipeline {
stage('Deploy') { stage('Deploy') {
steps { steps {
dir("zip_linux") { dir("zip_linux") {
sh 'cp -R ../linux/build/bin ../linux/build/lib ../linux/include .' sh 'cp -R ../linux/build/bin ../linux/build/lib ../linux/RSPModelLib/include .'
} }
dir("zip_win") { dir("zip_win") {
sh 'cp -R ../windows/build/bin ../windows/build/lib ../windows/include .' sh 'cp -R ../windows/build/bin ../windows/build/lib ../windows/RSPModelLib/include .'
} }
zip archive: false, dir: 'zip_linux', exclude: '', glob: '', zipFile: 'linux_x64.zip' zip archive: false, dir: 'zip_linux', exclude: '', glob: '', zipFile: 'linux_x64.zip'
sh 'mv linux_x64.zip ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_Linux_x86_64.zip' sh 'mv linux_x64.zip ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_Linux_x86_64.zip'
@ -60,7 +60,7 @@ pipeline {
stage('Sign') { stage('Sign') {
steps { steps {
sh 'ls -l' sh 'ls -l'
sh 'gpg --batch --detach-sign -o ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_Linux_x86_64.zip.gpg ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_x64.zip' sh 'gpg --batch --detach-sign -o ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_Linux_x86_64.zip.gpg ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_Linux_x86_64.zip'
sh 'gpg --batch --detach-sign -o ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_mingw64.zip.gpg ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_mingw64.zip' sh 'gpg --batch --detach-sign -o ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_mingw64.zip.gpg ${CI_OUTPUT_NAME}_${CI_VERSION}.${BUILD_NUMBER}_mingw64.zip'
archiveArtifacts(artifacts: '*.gpg') archiveArtifacts(artifacts: '*.gpg')
fingerprint(targets: '*.gpg') fingerprint(targets: '*.gpg')