Add .jar for clientGUI

This commit is contained in:
Louis Royer 2020-04-03 14:33:24 +02:00 committed by js
parent b5c07299d2
commit 1451b67a5b

4
Jenkinsfile vendored
View File

@ -14,6 +14,9 @@
sh 'echo "BUILDING TRACKER"' sh 'echo "BUILDING TRACKER"'
sh 'echo Main-Class: tracker/Tracker > MANIFEST.MF' sh 'echo Main-Class: tracker/Tracker > MANIFEST.MF'
sh 'jar -cvmf MANIFEST.MF tracker.jar $(find bin/ -maxdepth 1 -mindepth 1 -printf "-C bin %f\n")' sh 'jar -cvmf MANIFEST.MF tracker.jar $(find bin/ -maxdepth 1 -mindepth 1 -printf "-C bin %f\n")'
sh 'echo "BUILDING CLIENT GUI"'
sh 'echo Main-Class: gui/Gui > MANIFEST.MF'
sh 'jar -cvmf MANIFEST.MF clientGUI.jar $(find bin/ -maxdepth 1 -mindepth 1 -printf "-C bin %f\n")'
sh 'echo "CREATING sources.tar.gz"' sh 'echo "CREATING sources.tar.gz"'
sh 'tar -zcvf sources.tar.gz src/' sh 'tar -zcvf sources.tar.gz src/'
} }
@ -29,6 +32,7 @@
archiveArtifacts artifacts: 'client.jar', fingerprint: true archiveArtifacts artifacts: 'client.jar', fingerprint: true
archiveArtifacts artifacts: 'server.jar', fingerprint: true archiveArtifacts artifacts: 'server.jar', fingerprint: true
archiveArtifacts artifacts: 'tracker.jar', fingerprint: true archiveArtifacts artifacts: 'tracker.jar', fingerprint: true
archiveArtifacts artifacts: 'clientGUI.jar', fingerprint:true
archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: true archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: true
} }
} }