add Jenkins support

master
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
- [ ] 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