Merge pull request 'Add .jar for clientGUI' (#109) from fix103-jenkinsfile into fix103
All checks were successful
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/pr-master This commit looks good

This commit is contained in:
js_auge 2020-04-03 14:36:43 +02:00
commit 22c5217298

4
Jenkinsfile vendored
View File

@ -14,6 +14,9 @@
sh 'echo "BUILDING TRACKER"'
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 '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 'tar -zcvf sources.tar.gz src/'
}
@ -29,6 +32,7 @@
archiveArtifacts artifacts: 'client.jar', fingerprint: true
archiveArtifacts artifacts: 'server.jar', fingerprint: true
archiveArtifacts artifacts: 'tracker.jar', fingerprint: true
archiveArtifacts artifacts: 'clientGUI.jar', fingerprint:true
archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: true
}
}