added jenkinsfile
This commit is contained in:
parent
d8b8093556
commit
d481549931
23
jenkinsfile
Normal file
23
jenkinsfile
Normal file
@ -0,0 +1,23 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
sh 'javac -cp "./src" -d "./bin" $(find . -iname "*.java" -type f) -Xlint:deprecation'
|
||||
}
|
||||
}
|
||||
stage('run') {
|
||||
steps {
|
||||
sh 'ls'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'client.jar', fingerprint: true
|
||||
archiveArtifacts artifacts: 'server.jar', fingerprint: true
|
||||
archiveArtifacts artifacts: 'sources.tar.gz', fingerprint: false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user