add Jenkins support

This commit is contained in:
Dmitry Isaenko 2019-01-01 23:20:10 +03:00
parent c0c838e54c
commit 4c532a730c
2 changed files with 28 additions and 1 deletions

27
Jenkinsfile vendored Normal file
View file

@ -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'
}
}
}
}

View file

@ -29,7 +29,7 @@ Used libraries:
- [ ] Documentation - [ ] Documentation
- [ ] Code refactoring - [ ] Code refactoring
- [ ] QA: good regression testing - [ ] QA: good regression testing
- [ ] CI/CD - [x] CI/CD Jenkins
- [ ] Suppress messages from server or handle them separately from selected worker - [ ] Suppress messages from server or handle them separately from selected worker
- [ ] Logs backend workers as threads (SQLite and co. are too slow) - [ ] Logs backend workers as threads (SQLite and co. are too slow)
- [ ] Logs backend worker for mongodb - [ ] Logs backend worker for mongodb