innaircbot/Jenkinsfile

28 lines
719 B
Text
Raw Normal View History

2019-01-01 23:20:10 +03:00
pipeline {
agent {
docker {
image 'maven:3-alpine'
2019-01-02 15:25:04 +03:00
args '-v /home/docker/jenkins/files/m2:/root/.m2 -v /home/docker/innaircbot/files/artifact:/rel'
2019-01-01 23:20:10 +03:00
}
}
stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests clean package'
}
}
stage('Test') {
steps {
echo 'Skip testing...'
}
}
stage('Deploy') {
steps {
2019-01-02 15:25:04 +03:00
// TODO: consider switch to docker registry
2019-01-01 23:20:10 +03:00
sh 'cp ./target/InnaIrcBot-*-jar-with-dependencies.jar /rel/InnaIrcBot.jar'
// sh 'docker restart innaircbot'
}
}
}
}