Update
parent
d481549931
commit
0a651d6ccf
@ -1,23 +1,31 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'javac -cp "./src" -d "./bin" $(find . -iname "*.java" -type f) -Xlint:deprecation'
|
sh 'mkdir bin'
|
||||||
}
|
sh 'javac -cp "./src" -d "./bin" $(find . -iname "*.java" -type f) -Xlint:deprecation'
|
||||||
}
|
sh 'echo "BUILDING CLIENT"'
|
||||||
stage('run') {
|
sh 'echo Main-Class: clientP2P/ClientP2P > MANIFEST.MF'
|
||||||
steps {
|
sh 'jar -cvmf MANIFEST.MF client.jar $(find . \( -iname "*.class" -and ! -iwholename "*/clientP2P/*.class" \) -type f)'
|
||||||
sh 'ls'
|
sh 'echo "BUILDING SERVER"'
|
||||||
}
|
sh 'echo Main-Class: javaProjet2020/Server > MANIFEST.MF'
|
||||||
}
|
sh 'jar -cvmf MANIFEST.MF server.jar $(find . \( -iname "*.class" -and ! -iwholename "*/serverP2P/*.class" \) -type f)'
|
||||||
}
|
sh 'tar -zcvf sources.tar.gz src/'
|
||||||
post {
|
}
|
||||||
success {
|
}
|
||||||
archiveArtifacts artifacts: 'client.jar', fingerprint: true
|
stage('run') {
|
||||||
archiveArtifacts artifacts: 'server.jar', fingerprint: true
|
steps {
|
||||||
archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: false
|
sh 'ls'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts artifacts: 'client.jar', fingerprint: true
|
||||||
|
archiveArtifacts artifacts: 'server.jar', fingerprint: true
|
||||||
|
archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue