Switch to 7z for artifacts

This commit is contained in:
sholdee 2022-05-06 10:31:24 -05:00 committed by GitHub
commit 68fc4337fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
Jenkinsfile vendored
View file

@ -59,10 +59,10 @@ pipeline {
move ".\\OTRGui\\build\\Release\\OTRGui.exe" ".\\" move ".\\OTRGui\\build\\Release\\OTRGui.exe" ".\\"
rename README.md readme.txt rename README.md readme.txt
"${env.ZIP}" a soh.zip soh.exe OTRGui.exe assets readme.txt "${env.ZIP}" a soh.7z soh.exe OTRGui.exe assets readme.txt
""" """
archiveArtifacts artifacts: 'soh.zip', followSymlinks: false, onlyIfSuccessful: true archiveArtifacts artifacts: 'soh.7z', followSymlinks: false, onlyIfSuccessful: true
} }
} }
post { post {
@ -100,13 +100,13 @@ pipeline {
mv README.md build/readme.txt mv README.md build/readme.txt
cd build cd build
zip -r soh-linux.zip soh.elf OTRGui assets readme.txt 7z a soh-linux.7z soh.elf OTRGui assets readme.txt
mv soh-linux.zip ../ mv soh-linux.7z ../
''' '''
} }
sh 'sudo docker container stop sohcont' sh 'sudo docker container stop sohcont'
archiveArtifacts artifacts: 'soh-linux.zip', followSymlinks: false, onlyIfSuccessful: true archiveArtifacts artifacts: 'soh-linux.7z', followSymlinks: false, onlyIfSuccessful: true
} }
post { post {
always { always {