Update Jenkinsfile to add tracker.jar generation
All checks were successful
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/pr-master This commit looks good
All checks were successful
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/pr-master This commit looks good
This commit is contained in:
parent
5f48c9cbc1
commit
33f1829cdc
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -11,6 +11,10 @@
|
||||
sh 'echo "BUILDING SERVER"'
|
||||
sh 'echo Main-Class: serverP2P/ServerP2P > MANIFEST.MF'
|
||||
sh 'jar -cvmf MANIFEST.MF server.jar $(find bin/ -maxdepth 1 -mindepth 1 -printf "-C bin %f\n")'
|
||||
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 "CREATING sources.tar.gz"'
|
||||
sh 'tar -zcvf sources.tar.gz src/'
|
||||
}
|
||||
}
|
||||
@ -24,6 +28,7 @@
|
||||
success {
|
||||
archiveArtifacts artifacts: 'client.jar', fingerprint: true
|
||||
archiveArtifacts artifacts: 'server.jar', fingerprint: true
|
||||
archiveArtifacts artifacts: 'tracker.jar', fingerprint: true
|
||||
archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user