diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b7da7e7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent { + docker { + image 'maven:3-alpine' + args '-v /root/.m2:/root/.m2 -v /home/docker/innaircbot/files/artifact:/rel' + } + } + + stages { + stage('Build') { + steps { + sh 'mvn -B -DskipTests clean package' + } + } + stage('Test') { + steps { + echo 'Skip testing...' + } + } + stage('Deploy') { + steps { + sh 'cp ./target/InnaIrcBot-*-jar-with-dependencies.jar /rel/InnaIrcBot.jar' + // sh 'docker restart innaircbot' + } + } + } +} \ No newline at end of file diff --git a/README.md b/README.md index 5619745..9e8a830 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Used libraries: - [ ] Documentation - [ ] Code refactoring - [ ] QA: good regression testing -- [ ] CI/CD +- [x] CI/CD Jenkins - [ ] Suppress messages from server or handle them separately from selected worker - [ ] Logs backend workers as threads (SQLite and co. are too slow) - [ ] Logs backend worker for mongodb